Added security note.
This commit is contained in:
parent
63749b71ca
commit
a453b4dbf0
@ -13,6 +13,7 @@ from bs4 import BeautifulSoup
|
||||
|
||||
|
||||
URL = 'http://www.byond.com/games/exadv1/spacestation13'
|
||||
# TODO: Better regexp that can't be spoofed by server names
|
||||
PLAYER_COUNT = re.compile('Logged in: (\d+) player')
|
||||
|
||||
|
||||
|
||||
@ -23,7 +23,6 @@ class Server(models.Model):
|
||||
@staticmethod
|
||||
def remove_old_servers():
|
||||
now = timezone.now()
|
||||
|
||||
for server in Server.objects.all():
|
||||
delta = now - server.last_updated
|
||||
if delta.days >= 7:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user