Skip to content

Commit

Permalink
small touch time refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 29, 2017
1 parent ab6c356 commit 0cfcd42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/appier/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def start(self, refresh = True):
self.tid = threading.current_thread().ident
self.start_time = time.time()
self.start_date = datetime.datetime.utcnow()
self.touch_time = "?t=%d" % self.start_time
self.touch_time = "t=%d" % self.start_time
if refresh: self.refresh()
if self.manager: self.manager.start()
self.status = RUNNING
Expand Down Expand Up @@ -2645,7 +2645,7 @@ def inline(self, filename):
return data

def touch(self, url):
return url + self.touch_time
return url + "?" + self.touch_time

def acl(self, token):
return util.check_login(token, self.request)
Expand Down

0 comments on commit 0cfcd42

Please sign in to comment.