Added security note.

This commit is contained in:
A. Svensson 2015-02-23 20:09:19 +01:00
parent 63749b71ca
commit a453b4dbf0
2 changed files with 1 additions and 1 deletions

View File

@ -13,6 +13,7 @@ from bs4 import BeautifulSoup
URL = 'http://www.byond.com/games/exadv1/spacestation13' 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') PLAYER_COUNT = re.compile('Logged in: (\d+) player')

View File

@ -23,7 +23,6 @@ class Server(models.Model):
@staticmethod @staticmethod
def remove_old_servers(): def remove_old_servers():
now = timezone.now() now = timezone.now()
for server in Server.objects.all(): for server in Server.objects.all():
delta = now - server.last_updated delta = now - server.last_updated
if delta.days >= 7: if delta.days >= 7: