Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Recommend.Games
Board Game Scraper
Commits
7a1c05a0
Verified
Commit
7a1c05a0
authored
Oct 12, 2020
by
Markus Shepherd
🙈
Browse files
small corrections to BASE_DIR; v2.11.2
parent
dc027a66
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
board_game_scraper/__version__.py
board_game_scraper/__version__.py
+1
-1
board_game_scraper/full_merge.py
board_game_scraper/full_merge.py
+1
-3
board_game_scraper/pubsub_pull.py
board_game_scraper/pubsub_pull.py
+0
-2
No files found.
board_game_scraper/__version__.py
View file @
7a1c05a0
...
...
@@ -2,5 +2,5 @@
"""Version."""
VERSION
=
(
2
,
11
,
1
)
VERSION
=
(
2
,
11
,
2
)
__version__
=
"."
.
join
(
map
(
str
,
VERSION
))
board_game_scraper/full_merge.py
View file @
7a1c05a0
...
...
@@ -12,15 +12,13 @@ from pathlib import Path
from
time
import
sleep
from
pytility
import
parse_bool
,
parse_float
from
scrapy.utils.project
import
get_project_settings
from
yaml
import
safe_load
from
.merge
import
merge_files
from
.utils
import
now
LOGGER
=
logging
.
getLogger
(
__name__
)
SETTINGS
=
get_project_settings
()
BASE_DIR
=
Path
(
SETTINGS
.
get
(
"BASE_DIR"
)
or
"."
).
resolve
()
BASE_DIR
=
Path
(
__file__
).
resolve
().
parent
.
parent
FEEDS_DIR
=
BASE_DIR
/
"feeds"
DATA_DIR
=
(
BASE_DIR
/
".."
/
"board-game-data"
).
resolve
()
...
...
board_game_scraper/pubsub_pull.py
View file @
7a1c05a0
...
...
@@ -9,7 +9,6 @@ import os
import
sys
from
itertools
import
count
from
pathlib
import
Path
from
time
import
sleep
from
pytility
import
normalize_space
...
...
@@ -23,7 +22,6 @@ except ImportError:
from
.utils
import
now
,
pubsub_client
LOGGER
=
logging
.
getLogger
(
__name__
)
BASE_DIR
=
Path
(
__file__
).
resolve
().
parent
.
parent
def
_process_messages
(
messages
,
output
,
header
=
False
,
encoding
=
"utf-8"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment