summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-31 18:36:46 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-31 18:36:46 +0200
commit55e70f4a90ad32bbde58c4f3ad1dc0862739b75e (patch)
treeb55a4f163d24e2c1c289cd265cec357e32868ab7 /db
parentc499c2108fd86a4ed696d4e02143f3b725bc8a22 (diff)
s/Problem.identifier()/Problem.get_identifier()
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