Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
FIXED: DateTime in download_file script
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Bernard committed Jan 5, 2007
1 parent d10e52b commit 0ad10d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/ryzom_com/Ryzom/skins/ryzom/download_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
##parameters=file
##title=
##
date = context.Date()[:10]
try:
date = str(DateTime())[:10]
result = context.checkDate(date=date,file=file)
if len(result) == 0:
context.insertDate(date=date,file=file)
context.incremente_dl(date=date,file=file)
except:
pass
container.REQUEST.RESPONSE.redirect(file)

0 comments on commit 0ad10d6

Please sign in to comment.