Skip to content

Commit

Permalink
Hotfix #213
Browse files Browse the repository at this point in the history
  • Loading branch information
twd2 committed Jul 25, 2017
1 parent 86d38db commit 5738b6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vj4/handler/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ async def get(self, *, start: str='', uid_or_name: str='', pid: str='', tid: str
record.get_count())
statistics = {'day': day_count, 'week': week_count, 'month': month_count,
'year': year_count, 'total': rcount}
url_prefix = '/d/{}'.format(urllib.parse.quote(self.domain_id))
query_string = urllib.parse.urlencode(
[('uid_or_name', uid_or_name), ('pid', pid), ('tid', tid)])
self.render('record_main.html', rdocs=rdocs, udict=udict, pdict=pdict, statistics=statistics,
filter_uid_or_name=uid_or_name, filter_pid=pid, filter_tid=tid,
socket_url='/records-conn?' + query_string,
socket_url=url_prefix + '/records-conn?' + query_string,
query_string=query_string)


Expand Down

0 comments on commit 5738b6e

Please sign in to comment.