Skip to content

Commit 2174165

Browse files
committed
fixed parameter parsing
1 parent 7af9614 commit 2174165

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gitstats

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,6 @@ class GitDataCollector(DataCollector):
663663

664664
for name in self.authors.keys():
665665
a = self.authors[name]
666-
#if a is None:
667-
# continue
668666
a['commits_frac'] = (100 * float(a['commits'])) / self.getTotalCommits()
669667
date_first = datetime.datetime.fromtimestamp(a['first_commit_stamp'])
670668
date_last = datetime.datetime.fromtimestamp(a['last_commit_stamp'])
@@ -1445,6 +1443,8 @@ class GitStats:
14451443
raise KeyError('no such key "%s" in config' % key)
14461444
if isinstance(conf[key], int):
14471445
conf[key] = int(value)
1446+
elif isinstance(conf[key], list):
1447+
conf[key].append(value)
14481448
else:
14491449
conf[key] = value
14501450
elif o in ('-h', '--help'):
@@ -1510,5 +1510,3 @@ if __name__=='__main__':
15101510
g = GitStats()
15111511
g.run(sys.argv[1:])
15121512

1513-
1514-
mon@open-freelancer:~/dev/go/src/openfreelancers$

0 commit comments

Comments
 (0)