Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 285 → Rev 287

/tsimapiak/dbconnector.py
50,11 → 50,14
FROM `metaInfixes`
ORDER BY CHAR_LENGTH(navi) DESC""")
for row in cur:
endfix = False
if row["navi"] and row["navi"][0] == "-":
ret[2].append({"id": row["id"], "navi": row["navi"].replace("-", ""), "gloss": row["shorthand"].upper()})
elif row["navi"] and row["navi"][-1] in ("-", "+"):
endfix = True
if row["navi"] and row["navi"][-1] in ("-", "+"):
ret[0].append({"id": row["id"], "navi": row["navi"].replace("-", ""), "gloss": row["shorthand"].upper()})
else:
endfix = True
if not endfix:
if not row["position"] or row["position"] == "NULL":
# not actually an affix
continue