gnucash maint: Improve comments how to update FQ sources

Frank H.Ellenberger fell at code.gnucash.org
Thu Mar 15 13:09:12 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/0c8c94ea (commit)
	from  https://github.com/Gnucash/gnucash/commit/232dcb5c (commit)



commit 0c8c94eab024984132fe78a5ea025f5af349127c
Author: fell <frank.h.ellenberger at gmail.com>
Date:   Thu Mar 15 18:09:08 2018 +0100

    Improve comments how to update FQ sources

diff --git a/src/engine/gnc-commodity.c b/src/engine/gnc-commodity.c
index fd66afa..c00cfe5 100644
--- a/src/engine/gnc-commodity.c
+++ b/src/engine/gnc-commodity.c
@@ -154,12 +154,21 @@ struct gnc_quote_source_s
     char *internal_name;	/* Name used internally and by finance::quote. */
 };
 
-/* To update the following lists search the FQ modules for their 'method's
- * because most of them have more than one.
+/* To update the following lists scan
+ * from github.com/finance-quote/finance-quote
+ * in lib/Finance/Quote/ all *.pm for "methods"
+ * because many of them have more than one -
+ * ideally after each release of them.
+ *
+ * Apply changes here also to the FQ appendix of help.
  */
 static gnc_quote_source currency_quote_source =
 { TRUE, 0, 0, "Currency", "CURRENCY", "currency" };
 
+/* The single quote method is usually the module name, but
+ * sometimes it get's the suffix "_direct"
+ * and the failover method is without suffix.
+ */
 static gnc_quote_source single_quote_sources[] =
 {
     { FALSE, 0, 0, "Alphavantage, US", "ALPHAVANTAGE", "alphavantage" },
@@ -216,6 +225,7 @@ static gnc_quote_source single_quote_sources[] =
     { FALSE, 0, 0, "Yahoo as JSON", "YAHOO_JSON", "yahoo_json" },
     { FALSE, 0, 0, "Yahoo as YQL", "YAHOO_YQL", "yahoo_yql" },
 };
+
 static gnc_quote_source multiple_quote_sources[] =
 {
     { FALSE, 0, 0, "Australia (ASX, ...)", "AUSTRALIA", "australia" },



Summary of changes:
 src/engine/gnc-commodity.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list