Skip to content
Snippets Groups Projects
Commit a176831d authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

handle patent data migration in import script

parent eb1de126
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,10 @@ class Command(BaseCommand):
for row in rows:
try:
b = Bibliography()
b.source = 'PM'
if row[1]=='article':
b.source = 'PM'
else:
b.source = 'PT'
b.id_source = row[2]
b.save()
except Exception as e:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment