Skip to content

Commit

Permalink
Prefixing strings for pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
jrods committed Sep 14, 2016
1 parent 29d88a8 commit f2fbc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/migration/versions/085_adjust_activity_timestamps.py
Expand Up @@ -4,13 +4,13 @@


def upgrade(migrate_engine):
"""
u"""
The script assumes that the current timestamp was
recorded with the server's current set timezone
"""
utc_now = datetime.datetime.utcnow()
local_now = datetime.datetime.now()

with migrate_engine.begin() as connection:
sql = "update activity set timestamp = timestamp + (%s - %s);"
sql = u"update activity set timestamp = timestamp + (%s - %s);"
connection.execute(sql, utc_now, local_now)

0 comments on commit f2fbc4b

Please sign in to comment.