Skip to content

Commit

Permalink
fix(db): fix db.json (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Jan 23, 2024
1 parent 6753528 commit 31622ed
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 134 deletions.
88 changes: 26 additions & 62 deletions COLORSCHEMES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

ColorSchemes List (43)
ColorSchemes List (32)
======================

- [folke/tokyonight.nvim](https://github.com/folke/tokyonight.nvim) (stars: 4600, last update: 2024-01-21)
Expand All @@ -19,19 +19,11 @@ ColorSchemes List (43)
- kanagawa-dragon
- kanagawa-lotus
- kanagawa-wave
- [nlknguyen/papercolor-theme](https://github.com/nlknguyen/papercolor-theme) (stars: 2586, last update: 2022-06-08)
- [nlknguyen/papercolor-theme](https://github.com/nlknguyen/papercolor-theme) (stars: 2589, last update: 2022-06-09)
- PaperColor
- [EdenEast/nightfox.nvim](https://github.com/EdenEast/nightfox.nvim) (stars: 2500, last update: 2024-01-11)
- carbonfox
- dawnfox
- dayfox
- duskfox
- nightfox
- nordfox
- terafox
- [sainnhe/everforest](https://github.com/sainnhe/everforest) (stars: 2300, last update: 2023-10-24)
- [sainnhe/everforest](https://github.com/sainnhe/everforest) (stars: 2300, last update: 2023-10-25)
- everforest
- [cocopon/iceberg.vim](https://github.com/cocopon/iceberg.vim) (stars: 2091, last update: 2022-11-23)
- [cocopon/iceberg.vim](https://github.com/cocopon/iceberg.vim) (stars: 2092, last update: 2022-11-23)
- iceberg
- [projekt0n/github-nvim-theme](https://github.com/projekt0n/github-nvim-theme) (stars: 1900, last update: 2024-01-19)
- github_dark
Expand All @@ -46,61 +38,47 @@ ColorSchemes List (43)
- github_light_default
- github_light_high_contrast
- github_light_tritanopia
- [junegunn/seoul256.vim](https://github.com/junegunn/seoul256.vim) (stars: 1609, last update: 2023-05-03)
- [junegunn/seoul256.vim](https://github.com/junegunn/seoul256.vim) (stars: 1612, last update: 2023-05-03)
- seoul256
- seoul256-light
- [sainnhe/gruvbox-material](https://github.com/sainnhe/gruvbox-material) (stars: 1600, last update: 2023-11-22)
- gruvbox-material
- [rose-pine/neovim](https://github.com/rose-pine/neovim) (stars: 1600, last update: 2024-01-18)
- [rose-pine/neovim](https://github.com/rose-pine/neovim) (stars: 1600, last update: 2024-01-19)
- rose-pine
- rose-pine-dawn
- rose-pine-main
- rose-pine-moon
- [ku1ik/vim-monokai](https://github.com/ku1ik/vim-monokai) (stars: 1424, last update: 2022-02-09)
- [sainnhe/gruvbox-material](https://github.com/sainnhe/gruvbox-material) (stars: 1600, last update: 2023-11-22)
- gruvbox-material
- [ku1ik/vim-monokai](https://github.com/ku1ik/vim-monokai) (stars: 1421, last update: 2022-02-09)
- monokai
- [sainnhe/sonokai](https://github.com/sainnhe/sonokai) (stars: 1400, last update: 2023-10-24)
- [sainnhe/sonokai](https://github.com/sainnhe/sonokai) (stars: 1400, last update: 2023-10-25)
- sonokai
- [ellisonleao/gruvbox.nvim](https://github.com/ellisonleao/gruvbox.nvim) (stars: 1400, last update: 2024-01-01)
- [ellisonleao/gruvbox.nvim](https://github.com/ellisonleao/gruvbox.nvim) (stars: 1400, last update: 2024-01-02)
- gruvbox
- [dracula/vim](https://github.com/dracula/vim) (stars: 1300, last update: 2023-10-29)
- dracula
- [navarasu/onedark.nvim](https://github.com/navarasu/onedark.nvim) (stars: 1300, last update: 2024-01-22)
- onedark
- [dracula/vim](https://github.com/dracula/vim) (stars: 1300, last update: 2023-10-29)
- dracula
- [whatyouhide/vim-gotham](https://github.com/whatyouhide/vim-gotham) (stars: 1203, last update: 2023-01-19)
- gotham
- gotham256
- [mhartington/oceanic-next](https://github.com/mhartington/oceanic-next) (stars: 1100, last update: 2023-05-01)
- OceanicNext
- OceanicNextLight
- [jacoborus/tender.vim](https://github.com/jacoborus/tender.vim) (stars: 1085, last update: 2021-05-24)
- [jacoborus/tender.vim](https://github.com/jacoborus/tender.vim) (stars: 1090, last update: 2021-05-24)
- tender
- [lifepillar/vim-solarized8](https://github.com/lifepillar/vim-solarized8) (stars: 955, last update: 2024-01-22)
- solarized8
- solarized8_flat
- solarized8_high
- solarized8_low
- [tomasiser/vim-code-dark](https://github.com/tomasiser/vim-code-dark) (stars: 883, last update: 2023-11-11)
- [tomasiser/vim-code-dark](https://github.com/tomasiser/vim-code-dark) (stars: 883, last update: 2023-11-12)
- codedark
- [romainl/apprentice](https://github.com/romainl/apprentice) (stars: 865, last update: 2023-02-15)
- apprentice
- [marko-cerovac/material.nvim](https://github.com/marko-cerovac/material.nvim) (stars: 862, last update: 2024-01-22)
- [marko-cerovac/material.nvim](https://github.com/marko-cerovac/material.nvim) (stars: 862, last update: 2024-01-23)
- material
- material-darker
- material-deep-ocean
- material-lighter
- material-oceanic
- material-palenight
- [jnurmine/zenburn](https://github.com/jnurmine/zenburn) (stars: 860, last update: 2022-08-08)
- zenburn
- [nyoom-engineering/oxocarbon.nvim](https://github.com/nyoom-engineering/oxocarbon.nvim) (stars: 843, last update: 2023-11-27)
- [nyoom-engineering/oxocarbon.nvim](https://github.com/nyoom-engineering/oxocarbon.nvim) (stars: 843, last update: 2023-11-28)
- oxocarbon
- [sainnhe/edge](https://github.com/sainnhe/edge) (stars: 807, last update: 2023-10-24)
- [sainnhe/edge](https://github.com/sainnhe/edge) (stars: 807, last update: 2023-10-25)
- edge
- [raphamorim/lucario](https://github.com/raphamorim/lucario) (stars: 781, last update: 2024-01-02)
- lucario
- [srcery-colors/srcery-vim](https://github.com/srcery-colors/srcery-vim) (stars: 775, last update: 2024-01-03)
- srcery
- [pineapplegiant/spaceduck](https://github.com/pineapplegiant/spaceduck) (stars: 757, last update: 2022-02-21)
- spaceduck
- [ajmwagar/vim-deus](https://github.com/ajmwagar/vim-deus) (stars: 726, last update: 2021-03-28)
- deus
- [bluz71/vim-nightfly-colors](https://github.com/bluz71/vim-nightfly-colors) (stars: 717, last update: 2024-01-22)
- nightfly
- [shaunsingh/nord.nvim](https://github.com/shaunsingh/nord.nvim) (stars: 709, last update: 2023-12-20)
Expand All @@ -109,29 +87,17 @@ ColorSchemes List (43)
- moonfly
- [fenetikm/falcon](https://github.com/fenetikm/falcon) (stars: 680, last update: 2023-03-12)
- falcon
- [drewtempelmeyer/palenight.vim](https://github.com/drewtempelmeyer/palenight.vim) (stars: 646, last update: 2023-04-27)
- [drewtempelmeyer/palenight.vim](https://github.com/drewtempelmeyer/palenight.vim) (stars: 647, last update: 2023-04-27)
- palenight
- [embark-theme/vim](https://github.com/embark-theme/vim) (stars: 604, last update: 2024-01-14)
- [embark-theme/vim](https://github.com/embark-theme/vim) (stars: 604, last update: 2024-01-15)
- embark
- [preservim/vim-colors-pencil](https://github.com/preservim/vim-colors-pencil) (stars: 593, last update: 2022-05-07)
- [preservim/vim-colors-pencil](https://github.com/preservim/vim-colors-pencil) (stars: 592, last update: 2022-05-07)
- pencil
- [challenger-deep-theme/vim](https://github.com/challenger-deep-theme/vim) (stars: 574, last update: 2022-04-25)
- challenger_deep
- [Mofiqul/vscode.nvim](https://github.com/Mofiqul/vscode.nvim) (stars: 569, last update: 2024-01-22)
- vscode
- [liuchengxu/space-vim-dark](https://github.com/liuchengxu/space-vim-dark) (stars: 563, last update: 2023-11-04)
- space-vim-dark
- [savq/melange-nvim](https://github.com/savq/melange-nvim) (stars: 559, last update: 2023-10-19)
- melange
- [lunacookies/vim-colors-xcode](https://github.com/lunacookies/vim-colors-xcode) (stars: 536, last update: 2023-11-06)
- xcode
- xcodedark
- xcodedarkhc
- xcodehc
- xcodelight
- xcodelighthc
- xcodewwdc
- [mcchrish/zenbones.nvim](https://github.com/mcchrish/zenbones.nvim) (stars: 532, last update: 2024-01-20)
- [mcchrish/zenbones.nvim](https://github.com/mcchrish/zenbones.nvim) (stars: 532, last update: 2024-01-21)
- duckbones
- forestbones
- kanagawabones
Expand All @@ -144,6 +110,4 @@ ColorSchemes List (43)
- vimbones
- zenbones
- zenburned
- zenwritten
- [rigellute/rigel](https://github.com/rigellute/rigel) (stars: 507, last update: 2024-01-11)
- rigel
- zenwritten
5 changes: 3 additions & 2 deletions collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
DATE_FORMAT = "%Y-%m-%d"
CANDIDATE_DIR = "candidate"

if os.path.exists("db.json"):
os.remove("db.json")


def init_logging(level: typing.Optional[int]) -> None:
assert isinstance(level, int) or level is None
Expand Down Expand Up @@ -622,8 +625,6 @@ def collect(debug_opt, no_headless_opt, skip_fetch_opt, skip_remove_db_opt):
logging.debug(f"debug_opt:{debug_opt}, no_headless_opt:{no_headless_opt}")
if no_headless_opt:
WEBDRIVER_HEADLESS = False
if not skip_remove_db_opt:
os.remove("db.json")
if not skip_fetch_opt:
vcs = VimColorSchemes()
vcs.fetch()
Expand Down
Loading

0 comments on commit 31622ed

Please sign in to comment.