Skip to content

Commit

Permalink
fix #374
Browse files Browse the repository at this point in the history
  • Loading branch information
a76yyyy committed Feb 22, 2023
1 parent dc3a1cf commit 99c65ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions libs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import jinja2
from Crypto.Cipher import AES
from faker import Faker
from jinja2.filters import do_float, do_int
from tornado import gen, httpclient

import config
Expand Down Expand Up @@ -799,6 +800,8 @@ def _aes_decrypt(word:str, key:str, mode='CBC', iv:str=None, input_format='base6
jinja_globals = {
# types
'quote_chinese': quote_chinese,
'int': do_int,
'float': do_float,
'bool': to_bool,
'utf8': utf8,
'unicode': conver2unicode,
Expand Down
2 changes: 1 addition & 1 deletion web/static/coffee/har/analysis.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Created on 2014-08-02 10:07:33

window.jinja_globals = [
'quote_chinese', 'bool', 'utf8', 'unicode', 'timestamp', 'date_time',
'quote_chinese', 'int', 'float', 'bool', 'utf8', 'unicode', 'timestamp', 'date_time',
'is_num', 'add', 'sub', 'multiply', 'divide', 'Faker', 'b64decode',
'b64encode', 'to_uuid', 'md5', 'sha1', 'password_hash', 'hash',
'aes_encrypt', 'aes_decrypt', 'regex_replace', 'regex_escape',
Expand Down
2 changes: 1 addition & 1 deletion web/static/har/analysis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 99c65ce

Please sign in to comment.