Commit 62e662195297662c1967c657e6a6a346a9ef460c

Authored by Miguel Barão
1 parent 49f4c7a8
Exists in master and in 1 other branch dev

fix initdb error where csv was being initialized twice.

perguntations/__init__.py
@@ -32,7 +32,7 @@ proof of submission and for review. @@ -32,7 +32,7 @@ proof of submission and for review.
32 ''' 32 '''
33 33
34 APP_NAME = 'perguntations' 34 APP_NAME = 'perguntations'
35 -APP_VERSION = '2022.01.dev1' 35 +APP_VERSION = '2022.03.dev1'
36 APP_DESCRIPTION = str(__doc__) 36 APP_DESCRIPTION = str(__doc__)
37 37
38 __author__ = 'Miguel Barão' 38 __author__ = 'Miguel Barão'
perguntations/initdb.py
@@ -177,10 +177,6 @@ def main(): @@ -177,10 +177,6 @@ def main():
177 print('Adding users from:', csvfile) 177 print('Adding users from:', csvfile)
178 students.extend(get_students_from_csv(csvfile)) 178 students.extend(get_students_from_csv(csvfile))
179 179
180 - for csvfile in args.csvfile:  
181 - print('Adding users from:', csvfile)  
182 - students.extend(get_students_from_csv(csvfile))  
183 -  
184 if args.add: 180 if args.add:
185 for uid, name in args.add: 181 for uid, name in args.add:
186 print(f'Adding user: {uid}, {name}.') 182 print(f'Adding user: {uid}, {name}.')