Skip to content

Commit b263998

Browse files
committed
Try harder to get a modified date, fix bug with SDO importing from new data
- Legacy-Id: 3353
1 parent 3594f08 commit b263998

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

redesign/importing/import-liaison.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_body(name, raw_code):
8787
elif t[0] == "wg":
8888
b = lookup_group(acronym=Acronym.objects.get(pk=t[1]).acronym, type="wg")
8989
elif t[0] == "sdo":
90-
b = lookup_group(name=SDOs.objects.get(pk=t[1]).name, type="sdo")
90+
b = lookup_group(name=SDOs.objects.get(pk=t[1]).sdo_name, type="sdo")
9191

9292
if not b:
9393
b = lookup_group(acronym=raw_code)
@@ -173,6 +173,8 @@ def lookup_group(**kwargs):
173173

174174
l.submitted = o.submitted_date
175175
l.modified = o.last_modified_date
176+
if not l.modified and l.submitted:
177+
l.modified = l.submitted
176178
if not o.approval:
177179
# no approval object means it's approved alright - weird, we
178180
# have to fake the approved date then

0 commit comments

Comments
 (0)