You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deff_src_id_by_proj_ver(proj, version):
forrinquery_omw("""SELECT src.id FROM src JOIN proj ON src.proj_id=proj.id WHERE proj.code= ? AND src.version = ?""",
[proj, version]):
returnr['id']
Besides being confusing, it is a source of bugs. In one case (#48), the for loop iterated over an empty list, so the function returned None instead of r['id'].
The text was updated successfully, but these errors were encountered:
For example:
Besides being confusing, it is a source of bugs. In one case (#48), the for loop iterated over an empty list, so the function returned
None
instead ofr['id']
.The text was updated successfully, but these errors were encountered: