Remove obsolete code.
Remove some unnecessary module imports and code that worked with UNIX timestamps.
This commit is contained in:
parent
5eacaecbcb
commit
72fcde0ae0
3 changed files with 0 additions and 14 deletions
|
|
@ -1,8 +1,6 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import time
|
||||
import calendar
|
||||
import psycopg2
|
||||
import rlgalldb as rlgall
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,8 @@
|
|||
# Module for the Roguelike Gallery, using a postgres database
|
||||
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import calendar
|
||||
import re
|
||||
import psycopg2
|
||||
from datetime import datetime, tzinfo, timedelta
|
||||
|
||||
|
|
@ -71,13 +69,6 @@ def getconn():
|
|||
return None
|
||||
return conn
|
||||
|
||||
def recnameToInt(filename):
|
||||
recre = r"(\d{4})-(\d{2})-(\d{2})\.(\d{2}):(\d{2}):(\d{2})\.ttyrec$"
|
||||
match = re.match(recre, filename)
|
||||
if not match:
|
||||
return None
|
||||
return calendar.timegm([int(val) for val in match.groups()])
|
||||
|
||||
def recnameToTS(filename):
|
||||
pattern = "%Y-%m-%d.%H:%M:%S.ttyrec"
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
import cgi
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
import time
|
||||
import calendar
|
||||
from datetime import datetime
|
||||
|
|
@ -17,8 +16,6 @@ the game was spread across? The Archivist can find them all for you.</p>
|
|||
"""
|
||||
|
||||
ttyrecbase = "/var/dgl/dgldir/ttyrec/"
|
||||
recre = r"(\d{4,4})-(\d{2,2})-(\d{2,2})\.(\d{2,2}):(\d{2,2}):(\d{2,2})\.ttyrec"
|
||||
recrec = re.compile(recre)
|
||||
|
||||
def input_game(outf, selected=None):
|
||||
"Prints the form components for selecting a game."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue