After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571033 - stocks not automaticly refreshed
stocks not automaticly refreshed
Status: RESOLVED OBSOLETE
Product: gnome-applets
Classification: Other
Component: invest-applet
2.24.x
Other All
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 566923 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-02-09 09:15 UTC by rini
Modified: 2018-03-12 12:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
fixing the not-working auto refresh function (593 bytes, patch)
2009-06-19 12:27 UTC, Enrico Minack
none Details | Review
makes the auto refresh rate configurable (6.73 KB, patch)
2009-07-21 18:22 UTC, Enrico Minack
none Details | Review
makes the auto refresh rate configurable (6.79 KB, patch)
2009-08-28 21:09 UTC, Enrico Minack
none Details | Review

Description rini 2009-02-09 09:15:02 UTC
Please describe the problem:
Stocks are not always (never?) automaticly refreshed.

Steps to reproduce:
1. check refresh time
2. wait a long time
3. check again


Actual results:
refresh time still remains on first time

Expected results:
refresh time updates

Does this happen every time?
not sure

Other information:
the refresh function in quotes.py does not return True. Adding it resolves the problem.
Comment 1 Enrico Minack 2009-06-19 12:21:42 UTC
I can confirm this behaviour for 2.26.1, as well as latest svn revision (rev. 11454).

It is indeed simply missing the "return True" at the end of the QuoteUpdater.refresh() method in quotes.py. Therefore, the stocks are only refreshed once, and then the periodic timer is discarded due to the missing True return value. See following patch.
Comment 2 Enrico Minack 2009-06-19 12:27:07 UTC
Created attachment 136995 [details] [review]
fixing the not-working auto refresh function
Comment 3 Enrico Minack 2009-06-19 12:28:43 UTC
Btw., bug #566923 is a duplicate of this bug.
Comment 4 Philip Withnall 2009-07-08 10:23:31 UTC
*** Bug 566923 has been marked as a duplicate of this bug. ***
Comment 5 Enrico Minack 2009-07-21 18:22:30 UTC
Created attachment 138931 [details] [review]
makes the auto refresh rate configurable

Since the auto refresh rate is now working with the above patch, users might want to configure it to other values than the default of 10 or 15 minutes. This patch adds a config file and a respective field to the preferences ui. Refresh rates are allowed from 5 minutes to 5 hours.

This patch needs translation of the new label saying 'Auto Refresh Rate', whereas the label 'Minutes' gets already translated.
Comment 6 Callum McKenzie 2009-08-28 09:22:15 UTC
The first patch has been committed to git master. I haven't yet reviewed the second patch.
Comment 7 Enrico Minack 2009-08-28 21:09:32 UTC
Created attachment 141962 [details] [review]
makes the auto refresh rate configurable

Updated patch, another patch that was merged into master conflicts with the obsolete version of this patch.
Comment 8 Alberts Muktupāvels 2018-03-12 12:44:04 UTC
Invest applet has been removed because Yahoo Finance API is no longer available.