Skip to content

Commit

Permalink
fix: add post, to send post twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kalab-oto committed Jun 13, 2024
1 parent b7e41e4 commit 551ace3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ndop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ def login(username, password):

def search_filter(s,search_payload):
print("Filtering...")
# filter_page = s.post(SEARCH_URL, data=search_payload)
# filtering failed without sending post twice
filter_page = s.post(SEARCH_URL, data=search_payload)

#prevent URL encoding to get strings like `BERAN+V.+%282009%29+` and not `BERAN%2BV.%2B%282009%29%2B`
payload_str = "&".join("%s=%s" % (k,v) for k,v in search_payload.items())
Expand Down

0 comments on commit 551ace3

Please sign in to comment.