From 135e022bde01690054864035c56e1b022dad6dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Sat, 19 Oct 2024 10:45:35 +0200 Subject: [PATCH] just a few typos --- lmfdb/elliptic_curves/web_ec.py | 4 ++-- lmfdb/static/jquery.tablesorter.js | 4 ++-- lmfdb/utils/display_stats.py | 2 +- lmfdb/utils/uploader.py | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lmfdb/elliptic_curves/web_ec.py b/lmfdb/elliptic_curves/web_ec.py index bab34be0f8..9928118a8f 100644 --- a/lmfdb/elliptic_curves/web_ec.py +++ b/lmfdb/elliptic_curves/web_ec.py @@ -497,7 +497,7 @@ def red(p): data['manin_known'] = False data['optimal_label'] = self.Clabel if self.label_type == 'Cremona' else self.lmfdb_label else: - # find curve #1 in this class and its optimailty code: + # find curve #1 in this class and its optimality code: opt_curve = db.ec_curvedata.lucky({'Ciso': self.Ciso, 'Cnumber': 1}, projection=['Clabel','lmfdb_label','optimality']) data['manin_known'] = (opt_curve['optimality'] == 1) @@ -511,7 +511,7 @@ def red(p): # p-adic data: - data['p_adic_primes'] = [p for i,p in enumerate(prime_range(5, 100)) + data['p_adic_primes'] = [p for i, p in enumerate(prime_range(5, 100)) if (N*data['ap'][i]) % p != 0] data['p_adic_data_exists'] = False diff --git a/lmfdb/static/jquery.tablesorter.js b/lmfdb/static/jquery.tablesorter.js index 408bd0601e..cec2b68a94 100644 --- a/lmfdb/static/jquery.tablesorter.js +++ b/lmfdb/static/jquery.tablesorter.js @@ -19,7 +19,7 @@ * @desc Create a simple tablesorter interface. * * @example $('table').tablesorter({ sortList:[[0,0],[1,0]] }); - * @desc Create a tablesorter interface and sort on the first and secound column column headers. + * @desc Create a tablesorter interface and sort on the first and second column column headers. * * @example $('table').tablesorter({ headers: { 0: { sorter: false}, 1: {sorter: false} } }); * @@ -49,7 +49,7 @@ * to sortable tr elements in the thead on a descending sort. Default * value: "headerSortDown" * - * @option String sortInitialOrder (optional) A string of the inital sorting + * @option String sortInitialOrder (optional) A string of the initial sorting * order can be asc or desc. Default value: "asc" * * @option String sortMultisortKey (optional) A string of the multi-column sort diff --git a/lmfdb/utils/display_stats.py b/lmfdb/utils/display_stats.py index f557b8c64d..2e6dd3f047 100644 --- a/lmfdb/utils/display_stats.py +++ b/lmfdb/utils/display_stats.py @@ -482,7 +482,7 @@ def display_data(self, cols, table=None, constraint=None, avg=None, - ``totaler`` -- (1d-case) a query giving the denominator for the proportions. -- (2d-case) a function taking inputs the grid, row headers, col headers and this object, which adds some totals to the grid - - ``proprotioner`` -- a function for adding proportions + - ``proportioner`` -- a function for adding proportions See examples at the top of display_stats.py. - ``baseurl_func`` -- a base url, to which url_for is applied and then col=value tags are appended. Defaults to the url for ``self.baseurl_func``. diff --git a/lmfdb/utils/uploader.py b/lmfdb/utils/uploader.py index 07a665cc01..e1be2bd15c 100644 --- a/lmfdb/utils/uploader.py +++ b/lmfdb/utils/uploader.py @@ -280,7 +280,8 @@ def final_process(self, ids, F, by_table=None, cols=None): ["id", "status", "processed", "updated", "comment"] The later arguments are not used by default (they are present since GonalityBounds needs to update - these dictionaries) + these dictionaries): + - ``by_table`` -- a dictionary, with keys (table, newrow) and values a list of lines, as output by the process method. - ``cols`` -- a dictionary with keys (table, newrow) and values the set of columns for that pair