summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/models.py b/db/models.py
index e5aebb5..4eda2ba 100644
--- a/db/models.py
+++ b/db/models.py
@@ -43,7 +43,7 @@ class Problem(collections.namedtuple('Problem', ['id', 'language_id', 'problem_g
return _general_filter(kwargs, Problem, Problem.__sql_prefix)
@staticmethod
- def identifier(problem_id):
+ def get_identifier(problem_id):
return _run_sql('select l.identifier, g.identifier, p.identifier from problem p inner join problem_group g on g.id = p.problem_group_id inner join language l on l.id = p.language_id where p.id = %s', (problem_id,), fetch_one=True)
# known as Attempt in the original code