-
Notifications
You must be signed in to change notification settings - Fork 175
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
Fix incorrect name for city New London [id:4839416]. #389
Conversation
Name was previously set to "New Londonhttps://www.geonames.org/1524325/ekibastuz.html#". It has now been corrected to "New London"
Upon further investigation, it appears that the file that the sqlite database is generated from contains the error. However, since this file is hosted on OpenWeatherMap's servers (http://bulk.openweathermap.org/sample/city.list.json.gz) I am not sure how to fix that. I have reported this issue via their Ask a question portal EDIT: |
@Crozzers good catch, thanks! If you manage to regenerate the SQLite DB, that would be great! Thanks so much |
When I made the commit all I did was edit the database itself as I wasn't yet aware that it was auto-generated. I could tweak the generator to detect URLs in words/invalid words and ask the user for a correction if you think that makes sense |
It definitely does!
You would be able to detect URLs in words but probably not much else - but
that's a starting point
Thanks!
Claudio
…On Fri, Jan 28, 2022, 18:49 Crozzers ***@***.***> wrote:
When I made the commit all I did was edit the database itself as I wasn't
yet aware that it was auto-generated.
I could tweak the generator to detect URLs in words/invalid words and ask
the user for a correction if you think that makes sense
—
Reply to this email directly, view it on GitHub
<#389 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHOXXW7BFZT62KZ4FM5VKLUYLJJFANCNFSM5MY3W7CA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'll start working on that then. |
Will check the city's name, country and state for a URL. If one is found, the user will be prompted to either do nothing, replace the data with generated suggestion or manually enter the data.
I've added the checks for whether an entry contains a URL. It will check each city name, country and state for URLs and suggest a correction if one is found. The user can then either accept or deny the suggestion or manually enter a correction themselves. I also attempted to enable testing with Python 3.10 but that failed with the following error |
Quick update, I mentioned previously:
I did receive an email response saying that the developer team has been notified of the error. |
Thank you so much @Crozzers for the update, I'll check on your PR as soon as possible |
# New features [380](#380) Implemented [National Weather Alerts](https://openweathermap.org/api/one-call-api#listsource) support [376](#376) Now PyOWM uses SQLite instead of files to internally store city data. `CityIDRegistry` interface has changed but in a retrocompatible way # Chores [381](#381) Now it is possible to specify how many times to retry an API call # Bugfixes [379](#379) Experimental fix for `404` errors on Agromonitor API satellite image search [387](#387) Fixed lat/lon swap bug on Airpollution API [389](#389) Fixed wrong city name in City ID database
In the old
cities.db.bz2
file the record for "New London" [id: 4839416] had the name set incorrectly to"New Londonhttps://www.geonames.org/1524325/ekibastuz.html#"
, as seen in this screenshot:In the updated
cities.db.bz2
file this has been corrected as shown here: