Skip to content

Commit 2bfa3fc

Browse files
UPdated loading script with old date time format
1 parent e3a1109 commit 2bfa3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/bupehandler/management/commands/loadsitesdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ def handle(self, *args, **options):
231231
ftl.why_hidden = r2['why_hidden']
232232
if r2['date_firstfind'] != '':
233233
fdate = r2['date_firstfind']
234-
ftl.date_firstfind = datetime.strptime(fdate,'%d-%m-%y')
234+
ftl.date_firstfind = datetime.strptime(fdate,'%Y-%m-%d')
235235
if r2['date_lastfind'] != '':
236236
ldate = r2['date_lastfind']
237-
ftl.date_lastfind = datetime.strptime(ldate,'%d-%m-%y')
237+
ftl.date_lastfind = datetime.strptime(ldate,'%Y-%m-%d')
238238
ftl.name1 = r2['name1']
239239
if r2['name2'] != '':
240240
ftl.name2 = r2['name2']

0 commit comments

Comments
 (0)