Skip to content

Commit

Permalink
Merge pull request #5 from astrolabsoftware/issue/4/candid
Browse files Browse the repository at this point in the history
Fix type when checking candid
  • Loading branch information
JulienPeloton authored Nov 22, 2024
2 parents 128a6fd + 0c960d2 commit bd6dc52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def format_and_send_cutout(payload: dict) -> pd.DataFrame:

filters = [["objectId", "=", payload["objectId"]]]
if "candid" in payload:
filters.append(["candid", "=", payload["candid"]])
filters.append(["candid", "=", int(payload["candid"])])

args = yaml.load(open("config.yml"), yaml.Loader)
hdfs = fs.HadoopFileSystem(args["HDFS"], args["HDFSPORT"], user=args["HDFSUSER"])
Expand Down

0 comments on commit bd6dc52

Please sign in to comment.