]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/log
philipp/winterrodeln/wrpylib.git
3 years agoPrevent error by converting wikicode to string.
Philipp Spitzer [Fri, 18 Mar 2022 15:23:38 +0000 (16:23 +0100)]
Prevent error by converting wikicode to string.

3 years agoRename files for consistency.
Philipp Spitzer [Fri, 18 Mar 2022 15:23:15 +0000 (16:23 +0100)]
Rename files for consistency.

3 years agoUse strip_eol() to treat whitespace after generating wikitext.
Philipp Spitzer [Fri, 18 Mar 2022 14:10:08 +0000 (15:10 +0100)]
Use strip_eol() to treat whitespace after generating wikitext.

3 years agoCreate function strip_eol().
Philipp Spitzer [Fri, 18 Mar 2022 14:04:58 +0000 (15:04 +0100)]
Create function strip_eol().

3 years agoBetter parsing and displaying of gastronomy.
Philipp Spitzer [Tue, 15 Mar 2022 22:52:28 +0000 (23:52 +0100)]
Better parsing and displaying of gastronomy.

3 years agoRename template sledrun_wiki to sledrun_wikitext.
Philipp Spitzer [Tue, 15 Mar 2022 22:33:44 +0000 (23:33 +0100)]
Rename template sledrun_wiki to sledrun_wikitext.

3 years agoReplace "comment" with "note" to make labeling more consistent.
Philipp Spitzer [Tue, 15 Mar 2022 22:28:48 +0000 (23:28 +0100)]
Replace "comment" with "note" to make labeling more consistent.

3 years agoMake more use of function optional_set to simplify code.
Philipp Spitzer [Tue, 15 Mar 2022 22:18:31 +0000 (23:18 +0100)]
Make more use of function optional_set to simplify code.

3 years agoAdd functionality to actually save map and sledrun JSON results.
Philipp Spitzer [Tue, 15 Mar 2022 21:23:50 +0000 (22:23 +0100)]
Add functionality to actually save map and sledrun JSON results.

3 years agoUse functions get_sledrun_description and optional_set.
Philipp Spitzer [Tue, 15 Mar 2022 21:13:37 +0000 (22:13 +0100)]
Use functions get_sledrun_description and optional_set.

3 years agoCreate function optional_set.
Philipp Spitzer [Tue, 15 Mar 2022 21:12:53 +0000 (22:12 +0100)]
Create function optional_set.

3 years agoCreate function get_sledrun_description.
Philipp Spitzer [Tue, 15 Mar 2022 21:09:58 +0000 (22:09 +0100)]
Create function get_sledrun_description.

3 years agoRename bots for consistency.
Philipp Spitzer [Sun, 13 Mar 2022 20:02:09 +0000 (21:02 +0100)]
Rename bots for consistency.

3 years agoSupport parsing info_web.
Philipp Spitzer [Sun, 13 Mar 2022 16:50:41 +0000 (17:50 +0100)]
Support parsing info_web.

3 years agoFix support for walkup_support comment.
Philipp Spitzer [Sun, 13 Mar 2022 16:31:53 +0000 (17:31 +0100)]
Fix support for walkup_support comment.

3 years agoUpdate requirements.txt file.
Philipp Spitzer [Sun, 13 Mar 2022 16:28:20 +0000 (17:28 +0100)]
Update requirements.txt file.

3 years agoFix typo in docstring.
Philipp Spitzer [Sun, 13 Mar 2022 16:28:03 +0000 (17:28 +0100)]
Fix typo in docstring.

3 years agoOptimize imports.
Philipp Spitzer [Sun, 13 Mar 2022 16:27:53 +0000 (17:27 +0100)]
Optimize imports.

3 years agoNow using comment for nightlight_possible.
Philipp Spitzer [Sun, 13 Mar 2022 16:27:25 +0000 (17:27 +0100)]
Now using comment for nightlight_possible.

3 years agoRemove empty line in "see also".
Philipp Spitzer [Sun, 13 Mar 2022 13:05:38 +0000 (14:05 +0100)]
Remove empty line in "see also".

3 years agoAdd nightlight_weekdays_count and nightlight_weekdays_comment.
Philipp Spitzer [Sun, 13 Mar 2022 13:05:08 +0000 (14:05 +0100)]
Add nightlight_weekdays_count and nightlight_weekdays_comment.

3 years agoFix type annotations for nightlightdays_from_str/nightlightdays_to_str.
Philipp Spitzer [Sun, 13 Mar 2022 13:04:11 +0000 (14:04 +0100)]
Fix type annotations for nightlightdays_from_str/nightlightdays_to_str.

3 years agoFix handling of empty coordinates.
Philipp Spitzer [Sun, 23 Jan 2022 21:29:57 +0000 (22:29 +0100)]
Fix handling of empty coordinates.

3 years agoParse external public transport links.
Philipp Spitzer [Sun, 23 Jan 2022 21:14:53 +0000 (22:14 +0100)]
Parse external public transport links.

3 years agoParse cachet.
Philipp Spitzer [Sun, 23 Jan 2022 16:09:36 +0000 (17:09 +0100)]
Parse cachet.

3 years agoImprove sledrun_wiki template.
Philipp Spitzer [Sun, 23 Jan 2022 15:50:47 +0000 (16:50 +0100)]
Improve sledrun_wiki template.

3 years agoImplement walkup_support conversion.
Philipp Spitzer [Sun, 23 Jan 2022 15:50:20 +0000 (16:50 +0100)]
Implement walkup_support conversion.

3 years agoBetter parsing for car description.
Philipp Spitzer [Sun, 9 Jan 2022 22:30:35 +0000 (23:30 +0100)]
Better parsing for car description.

3 years agoFix indentation and create function for parsing car-related stuff.
Philipp Spitzer [Sun, 9 Jan 2022 22:08:07 +0000 (23:08 +0100)]
Fix indentation and create function for parsing car-related stuff.

3 years agoDetect impressions sub-page.
Philipp Spitzer [Sun, 9 Jan 2022 21:56:09 +0000 (22:56 +0100)]
Detect impressions sub-page.

3 years agoParse video from Buttonleiste.
Philipp Spitzer [Sun, 9 Jan 2022 21:42:32 +0000 (22:42 +0100)]
Parse video from Buttonleiste.

3 years agoMore detailed parsing of sled rental.
Philipp Spitzer [Sun, 9 Jan 2022 21:08:03 +0000 (22:08 +0100)]
More detailed parsing of sled rental.

3 years agoParse gastronomy.
Philipp Spitzer [Sun, 12 Dec 2021 21:37:57 +0000 (22:37 +0100)]
Parse gastronomy.

3 years agoImprove indentation.
Philipp Spitzer [Sun, 12 Dec 2021 16:09:46 +0000 (17:09 +0100)]
Improve indentation.

3 years agoParse car_distances.
Philipp Spitzer [Sun, 12 Dec 2021 15:59:19 +0000 (16:59 +0100)]
Parse car_distances.

3 years agoParse car_parking.
Philipp Spitzer [Sun, 12 Dec 2021 15:39:44 +0000 (16:39 +0100)]
Parse car_parking.

3 years agoChange formatting from markdown to mediawiki.
Philipp Spitzer [Sun, 12 Dec 2021 15:29:32 +0000 (16:29 +0100)]
Change formatting from markdown to mediawiki.

3 years agoAdd public transport lines.
Philipp Spitzer [Sun, 12 Dec 2021 14:45:18 +0000 (15:45 +0100)]
Add public transport lines.

3 years agoParse car description, public transport description and bus stop.
Philipp Spitzer [Sun, 12 Dec 2021 14:06:59 +0000 (15:06 +0100)]
Parse car description, public transport description and bus stop.

3 years agoAdd "see also".
Philipp Spitzer [Fri, 10 Dec 2021 20:37:34 +0000 (21:37 +0100)]
Add "see also".

3 years agoFix check for existence of image.
Philipp Spitzer [Fri, 10 Dec 2021 20:37:22 +0000 (21:37 +0100)]
Fix check for existence of image.

3 years agoParse description.
Philipp Spitzer [Mon, 29 Nov 2021 22:42:43 +0000 (23:42 +0100)]
Parse description.

3 years agoFurther work on parsing (now a map is parsed).
Philipp Spitzer [Mon, 29 Nov 2021 22:12:02 +0000 (23:12 +0100)]
Further work on parsing (now a map is parsed).

3 years agoAdd type annotations.
Philipp Spitzer [Mon, 29 Nov 2021 22:11:39 +0000 (23:11 +0100)]
Add type annotations.

3 years agoWork on parsing wikicode (currently Rodelbahnbox).
Philipp Spitzer [Sun, 28 Nov 2021 22:14:30 +0000 (23:14 +0100)]
Work on parsing wikicode (currently Rodelbahnbox).

3 years agoAdd some type annotations.
Philipp Spitzer [Sun, 28 Nov 2021 21:51:38 +0000 (22:51 +0100)]
Add some type annotations.

3 years agoAdd functions lonlat_to_json and lonlat_ele_to_json.
Philipp Spitzer [Sun, 28 Nov 2021 21:45:09 +0000 (22:45 +0100)]
Add functions lonlat_to_json and lonlat_ele_to_json.

3 years agoCorrectly represent operator in Rodelbahnbox dict.
Philipp Spitzer [Sun, 28 Nov 2021 21:44:23 +0000 (22:44 +0100)]
Correctly represent operator in Rodelbahnbox dict.

3 years agoStart to work on wikitext to JSON conversion.
Philipp Spitzer [Sun, 28 Nov 2021 10:45:26 +0000 (11:45 +0100)]
Start to work on wikitext to JSON conversion.

3 years agoDisplay reason for skips to user.
Philipp Spitzer [Sun, 28 Nov 2021 10:45:00 +0000 (11:45 +0100)]
Display reason for skips to user.

3 years agoImplement JSON validation after edit.
Philipp Spitzer [Sun, 28 Nov 2021 10:44:35 +0000 (11:44 +0100)]
Implement JSON validation after edit.

3 years agoName of public_transport_stop was split.
Philipp Spitzer [Sun, 31 Oct 2021 22:57:15 +0000 (23:57 +0100)]
Name of public_transport_stop was split.

3 years agoOrder keys by schema when validating.
Philipp Spitzer [Sun, 31 Oct 2021 09:16:13 +0000 (10:16 +0100)]
Order keys by schema when validating.

3 years agoWrite function to resolve references ("$ref").
Philipp Spitzer [Fri, 29 Oct 2021 09:33:37 +0000 (11:33 +0200)]
Write function to resolve references ("$ref").

3 years agoMake original schema available everywhere (prepare to resolve $ref).
Philipp Spitzer [Fri, 29 Oct 2021 07:22:47 +0000 (09:22 +0200)]
Make original schema available everywhere (prepare to resolve $ref).

3 years agoAdd test to check error message.
Philipp Spitzer [Fri, 29 Oct 2021 07:15:00 +0000 (09:15 +0200)]
Add test to check error message.

3 years agoJSON path now contains the keys directly.
Philipp Spitzer [Fri, 29 Oct 2021 07:14:46 +0000 (09:14 +0200)]
JSON path now contains the keys directly.

3 years agoType of arrays are not tested.
Philipp Spitzer [Thu, 28 Oct 2021 20:32:19 +0000 (22:32 +0200)]
Type of arrays are not tested.

3 years agoFurther work on order_json_keys.
Philipp Spitzer [Tue, 26 Oct 2021 21:48:06 +0000 (23:48 +0200)]
Further work on order_json_keys.

3 years agoStart to work on function sorting JSON data based on JSON schema.
Philipp Spitzer [Tue, 26 Oct 2021 21:08:49 +0000 (23:08 +0200)]
Start to work on function sorting JSON data based on JSON schema.

3 years agoCreate bot to validate sledrun JSON.
Philipp Spitzer [Tue, 26 Oct 2021 16:31:53 +0000 (18:31 +0200)]
Create bot to validate sledrun JSON.

3 years agoMove bot to bots directory.
Philipp Spitzer [Tue, 26 Oct 2021 14:56:02 +0000 (16:56 +0200)]
Move bot to bots directory.

3 years agoCreate bot to edit JSON data.
Philipp Spitzer [Tue, 26 Oct 2021 14:55:15 +0000 (16:55 +0200)]
Create bot to edit JSON data.

3 years agoSimplify and improve viewing of public transport.
Philipp Spitzer [Tue, 26 Oct 2021 09:23:03 +0000 (11:23 +0200)]
Simplify and improve viewing of public transport.

3 years agoSimplify sledrun markup creation by defining macro wr_page.
Philipp Spitzer [Tue, 26 Oct 2021 07:47:04 +0000 (09:47 +0200)]
Simplify sledrun markup creation by defining macro wr_page.

3 years agoDefine macro for weblink.
Philipp Spitzer [Tue, 26 Oct 2021 07:22:52 +0000 (09:22 +0200)]
Define macro for weblink.

3 years agoImprove rendering of sledrun as MediaWiki markup.
Philipp Spitzer [Tue, 26 Oct 2021 07:14:55 +0000 (09:14 +0200)]
Improve rendering of sledrun as MediaWiki markup.

3 years agoAdd description on how to use it.
Philipp Spitzer [Sun, 24 Oct 2021 19:57:41 +0000 (21:57 +0200)]
Add description on how to use it.

3 years agoUser script for pywikibot (https://gerrit.wikimedia.org/r/pywikibot/core.git).
Philipp Spitzer [Sun, 24 Oct 2021 19:54:59 +0000 (21:54 +0200)]
User script for pywikibot (https://gerrit.wikimedia.org/r/pywikibot/core.git).

3 years agoAdd some type annotations.
Philipp Spitzer [Tue, 19 Oct 2021 20:32:19 +0000 (22:32 +0200)]
Add some type annotations.

3 years agoCopy converting JSON to wikitext from wradmin.
Philipp Spitzer [Tue, 19 Oct 2021 20:32:07 +0000 (22:32 +0200)]
Copy converting JSON to wikitext from wradmin.

3 years agoAdd some type annotations.
Philipp Spitzer [Wed, 13 Oct 2021 21:35:25 +0000 (23:35 +0200)]
Add some type annotations.

3 years agoThe order of XML attributes is now retained.
Philipp Spitzer [Wed, 29 Sep 2021 21:15:39 +0000 (23:15 +0200)]
The order of XML attributes is now retained.

3 years agoPEP8 improvements.
Philipp Spitzer [Wed, 29 Sep 2021 21:15:11 +0000 (23:15 +0200)]
PEP8 improvements.

3 years agoUse same order of columns as in database.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:54 +0000 (23:14 +0200)]
Use same order of columns as in database.

3 years agoMention package name in some imports.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:32 +0000 (23:14 +0200)]
Mention package name in some imports.

3 years agoRemove unused imports.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:05 +0000 (23:14 +0200)]
Remove unused imports.

3 years agoRemove Python 3.4 shebang.
Philipp Spitzer [Wed, 29 Sep 2021 21:13:47 +0000 (23:13 +0200)]
Remove Python 3.4 shebang.

3 years agoAdd more type annotations.
Philipp Spitzer [Wed, 29 Sep 2021 21:13:19 +0000 (23:13 +0200)]
Add more type annotations.

3 years agoAvoid remaining usage of LonLat(None, None), instead None is used.
Philipp Spitzer [Wed, 29 Sep 2021 21:12:26 +0000 (23:12 +0200)]
Avoid remaining usage of LonLat(None, None), instead None is used.

3 years agoFix test usage of mwparserfromhell.
Philipp Spitzer [Wed, 29 Sep 2021 21:10:49 +0000 (23:10 +0200)]
Fix test usage of mwparserfromhell.

3 years agoNew table structure in MediaWiki: slots and content.
Philipp Spitzer [Wed, 29 Sep 2021 21:01:40 +0000 (23:01 +0200)]
New table structure in MediaWiki: slots and content.

4 years agoAdd function create_template().
Philipp Spitzer [Fri, 6 Aug 2021 21:16:53 +0000 (23:16 +0200)]
Add function create_template().

4 years agoOnly allow floats in LonLat (and not None, None).
Philipp Spitzer [Fri, 6 Aug 2021 20:32:33 +0000 (22:32 +0200)]
Only allow floats in LonLat (and not None, None).

4 years agoMake use of format strings.
Philipp Spitzer [Fri, 6 Aug 2021 20:31:57 +0000 (22:31 +0200)]
Make use of format strings.

4 years agoRemove unused class ParseError.
Philipp Spitzer [Fri, 6 Aug 2021 19:27:22 +0000 (21:27 +0200)]
Remove unused class ParseError.

4 years agoUpdate requirements.
Philipp Spitzer [Thu, 5 Aug 2021 20:39:20 +0000 (22:39 +0200)]
Update requirements.

4 years agoBetter formatting and add some type hints.
Philipp Spitzer [Thu, 5 Aug 2021 20:39:12 +0000 (22:39 +0200)]
Better formatting and add some type hints.

4 years agoParameter min and max of int_to_string are now minimum and maximum.
Philipp Spitzer [Mon, 26 Jul 2021 20:28:30 +0000 (22:28 +0200)]
Parameter min and max of int_to_string are now minimum and maximum.

4 years agoAdd type annotations and improve coding style.
Philipp Spitzer [Mon, 26 Jul 2021 20:27:30 +0000 (22:27 +0200)]
Add type annotations and improve coding style.

4 years agoDeactivate Bavaria and Switzerland.
Philipp Spitzer [Fri, 12 Feb 2021 12:41:54 +0000 (13:41 +0100)]
Deactivate Bavaria and Switzerland.

4 years agoAdd Bavaria.
Philipp Spitzer [Fri, 12 Feb 2021 12:39:55 +0000 (13:39 +0100)]
Add Bavaria.

4 years agoAdd DEM Switzerland.
Philipp Spitzer [Thu, 11 Feb 2021 21:24:32 +0000 (22:24 +0100)]
Add DEM Switzerland.

4 years agoImplement bounding box check.
Philipp Spitzer [Thu, 11 Feb 2021 11:10:05 +0000 (12:10 +0100)]
Implement bounding box check.

4 years agoImplement DEM for South Tyrol.
Philipp Spitzer [Tue, 9 Feb 2021 21:59:17 +0000 (22:59 +0100)]
Implement DEM for South Tyrol.

4 years agoFix nodata results.
Philipp Spitzer [Tue, 26 Jan 2021 21:59:23 +0000 (22:59 +0100)]
Fix nodata results.

4 years agoCreate test for wrdem.py.
Philipp Spitzer [Tue, 26 Jan 2021 21:59:07 +0000 (22:59 +0100)]
Create test for wrdem.py.

4 years agoSmall improvements in wrvalidators.py.
Philipp Spitzer [Mon, 25 Jan 2021 23:13:31 +0000 (00:13 +0100)]
Small improvements in wrvalidators.py.

4 years agoCreate module wrdem and script get_elevation.
Philipp Spitzer [Mon, 25 Jan 2021 22:06:12 +0000 (23:06 +0100)]
Create module wrdem and script get_elevation.

5 years agoPEP 8 improvements.
Philipp Spitzer [Mon, 29 Jun 2020 20:50:07 +0000 (22:50 +0200)]
PEP 8 improvements.