Skip to content

Commit

Permalink
fix: added space to fix wrong sql string
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed Dec 5, 2019
1 parent cfcbfa0 commit feecec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/common/dbmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_set_of_curatable_papers(self):
"JOIN pap_species ON pap_primary_data.joinkey = pap_species.joinkey "
"JOIN pap_year ON pap_primary_data.joinkey = pap_year.joinkey "
"WHERE pap_primary_data.pap_primary_data = 'primary' AND pap_type.pap_type <> '14' AND "
"pap_type.pap_type <> '26' AND pap_type.pap_type <> '15'"
"pap_type.pap_type <> '26' AND pap_type.pap_type <> '15' "
"AND pap_species.pap_species = '6239' AND CAST(REGEXP_REPLACE(COALESCE(pap_year,'0'), "
"'[^0-9]+', '', 'g') AS INTEGER) >= {}".format(str(datetime.now().year - 2)))
rows = self.cur.fetchall()
Expand Down

0 comments on commit feecec1

Please sign in to comment.