8 Commits

Author SHA1 Message Date
James Lu
32d9465b60 accountsdb: fix import 2023-04-28 18:02:00 -07:00
James Lu
edeb892db1 accountsdb: use shutil.move instead of os.rename
On Windows, os.rename will error if the destination exists
2023-04-27 23:26:14 -07:00
James Lu
02b9dafae5 accountsdb: fix missing import 2019-03-09 12:36:32 -08:00
James Lu
e46915b58d accountsdb: write DB to a temporary file first 2019-03-09 11:15:34 -08:00
James Lu
f3bfd9ff73 accountsdb: store users case-insensitively by default 2019-03-09 11:15:18 -08:00
James Lu
53d2286aaf LastFM, NuWeather: allow DB addressing mode to be configured
These now support:
- saving users by accounts (fall back to ident@host if not registered)
- saving users by ident@host
- saving users by nick
2019-01-02 19:43:20 -08:00
James Lu
c0d15face0 accountsdb: always save files into the data directory 2018-12-30 14:22:38 -08:00
James Lu
f0546d521d Pull LastFMDB into a generic accountsdb module 2018-12-30 12:37:22 -08:00