commit da76132da4d1f4057b51a5786e46513cb64d765b
parent 14719c593413f88c1fc550de2d5b289e08b6bd9e
Author: rbckman <rob@tarina.org>
Date: Mon, 17 Aug 2026 11:23:23 +0300
local loco is Finnish lol
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/server.py b/server.py
@@ -867,10 +867,11 @@ def visitorlog():
country = country.split(':')[1].split(',')[1].strip()
else:
country='none'
- thedict={'ip':ip,'referer':referer,'environ':environ,'country':country,'countrycode':countrycode,'time':formattime(datetime.datetime.now())}
- savejson('r/visitors/'+ip,thedict)
except:
- pass
+ country='local loco'
+ countrycode='fi'
+ thedict={'ip':ip,'referer':referer,'environ':environ,'country':country,'countrycode':countrycode,'time':formattime(datetime.datetime.now())}
+ savejson('r/visitors/'+ip,thedict)
print("added to visitor log")
if lastip != ip:
try: