diff options
author | TDavis | 2019-03-30 00:53:47 -0300 |
---|---|---|
committer | z411 | 2019-03-30 04:55:36 -0300 |
commit | 906800a6462237178e0872c55f8c22d27267ea6e (patch) | |
tree | b088becaa9b40fb81da536a7f6e87003577d0022 /cgi/formatting.py | |
parent | b12304fe60d5b2623e8218e8316977fdb55c1392 (diff) | |
download | weabot-906800a6462237178e0872c55f8c22d27267ea6e.tar.gz weabot-906800a6462237178e0872c55f8c22d27267ea6e.tar.xz weabot-906800a6462237178e0872c55f8c22d27267ea6e.zip |
Mover hilos fix
Mover hilos fix 2
Mover hilos fix INTENTO 3
Mover hilos fix 4 Test 1
Mover hilos fix 4 Test 2
Mover hilos fix 4 Test 3
Mover hilos fix 4 Test 4
Mover hilos fix 4 Test 5
Mover hilos fix 4 Test 6
Mover hilos fix 4 Test 7
Mover hilos fix 4 Test 8
Mover hilos fix 4 Test 9
Arreglando función para mover hilos y función para buscar posts por IP
Diffstat (limited to 'cgi/formatting.py')
-rw-r--r-- | cgi/formatting.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cgi/formatting.py b/cgi/formatting.py index d21bee2..6b2d8bc 100644 --- a/cgi/formatting.py +++ b/cgi/formatting.py @@ -121,11 +121,8 @@ def iphash(ip, post, t, useid, mobile, agent, cap_id, hide_end, has_countrycode) id = '???' else: day = int((current_t + (Settings.TIME_ZONE*3600)) / 86400) - word = ',' + str(day) - - # Make difference by thread - word += ',' + str(t) - + word = ',' + str(day) # IDs change every 24 hours + word += ',' + str(t) # IDs vary depending on thread id = hide_data(ip + word, 6, "id", Settings.SECRET) if hide_end: @@ -164,9 +161,8 @@ def iphash(ip, post, t, useid, mobile, agent, cap_id, hide_end, has_countrycode) if addressIsBanned(ip, ""): id += '#' - if (not has_countrycode and - not addressIsTor(ip) and - (addressIsProxy(ip) or not addressIsES(ip))): + elif (not has_countrycode and not addressIsTor(ip) and + (addressIsProxy(ip) or not addressIsES(ip))): id += '!' return id |