-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search not working anymore? #382
Comments
How do you call saveDatabase? |
Thank you for responding so quickly! I call it via my Flask Web App. When I type a word into the field from tablename it executes the first elif statement and calls saveDatabase. @app.route('/search')
def search():
#TODO change sdave to save 60 toots
query = request.args.get("query", "")
start_date = request.args.get("start_date", "")
end_date = request.args.get("end_date", "")
tablename = request.args.get("tablename", "")
if query:
#search toots for query and display it on the website
result = functions.searchInstance(instance="mastodon.social", query=query, start_date=start_date, end_date=end_date)
elif tablename:
#setup new table in database
result = functions.saveDatabase(table=tablename, query=tablename)
else:
result = False
print("No query")
return render_template('search.html', title='Search', posts=result, query=query) |
So in the mastodon documentation I saw that search v1 is completely removed now from the api. So maybe thats whats causing the library to throw an error? https://docs.joinmastodon.org/methods/search/ |
oof. potentially. you could switch to search_v2, if you're happy to drop support for versions that don't have it (probably old), or wait for me to have enough motivation to actually do maint work, or add some logic to use whatever is availble in your app |
Hello again, i tested it with search_v2 but the same error happens. |
Until recently my mastodon search tool was working fine with using snowflake IDs. But now it throws an error that my Date is invalid.
The timeline functions are still working though. I tested it.
Relevant code:
The text was updated successfully, but these errors were encountered: