Skip to content

Commit

Permalink
Readme angepasst und Name2num beii intent abstammung angepasst
Browse files Browse the repository at this point in the history
  • Loading branch information
Anja Zimmermann committed Sep 4, 2021
1 parent c80b306 commit 8d51ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ Ich als Landwirt:in...

## Impediments

* Keine direkte Abfrage zwischen Markennummer und Kuhname / Halsbandnummer.
* Keine direkte Abfrage zwischen Markennummer und Kuhname / Halsbandnummer.
--> Wurde gelöst mittels Mapping Tabelle :-)
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def webhook(req: Request):
if eartag is not None:
response = stammbaum(earTagNum=eartag)
elif kuhname is not None:
eartag = NAME2NUM.get(kuhname)
eartag = NAME2NUM.get(kuhname.lower())
if eartag is None:
response = f"Die Kuh {kuhname} kenne ich nicht."
else:
Expand Down

0 comments on commit 8d51ed2

Please sign in to comment.