Skip to content
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

Start Date cannot update automatically #35

Closed
hustwyk opened this issue Oct 18, 2023 · 4 comments
Closed

Start Date cannot update automatically #35

hustwyk opened this issue Oct 18, 2023 · 4 comments

Comments

@hustwyk
Copy link

hustwyk commented Oct 18, 2023

In the WorkStation page, the Start Date and End Date cannot update automatically after one day.
The code in app.py is

date1 = gr.Dropdown([str(datetime.date.today()-datetime.timedelta(days=i)) for i in range(config_browserqwen.max_days)], value=str(datetime.date.today()), label='Start Date')
date2 = gr.Dropdown([str(datetime.date.today()-datetime.timedelta(days=i)) for i in range(config_browserqwen.max_days)], value=str(datetime.date.today()), label='End Date')

It can be loaded only when I run this script.
Is there any idea to update the date automatically?

@tuhahaha
Copy link
Collaborator

Under the current settings, the date can be automatically updated every time the page is refreshed. Perhaps you could try refreshing the page?

@hustwyk
Copy link
Author

hustwyk commented Oct 19, 2023

I've tried refreshing the page, however the date cannot update automatically. I have to restart the run_server.py to make the date refreshed.

@tuhahaha
Copy link
Collaborator

Sorry, I made a mistake. The current date cannot be updated. We can update the date by calling a function, and I will update it soon.

@tuhahaha
Copy link
Collaborator

tuhahaha commented Nov 1, 2023

@hustwyk Hello, I have pushed the code to support date updates and use this function. Please refresh the Google Extension after pulling the latest code, as we have updated the corresponding code.

@tuhahaha tuhahaha closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants