Skip to content

Commit facaa53

Browse files
committed
Movie variables into settings module
1 parent b20812a commit facaa53

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

loading_api_wrapper/api.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@
22

33
import requests
44

5-
API_URL = "https://api.loading.se"
6-
API_VERSION = "v1"
7-
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
8-
EDITORIAL_POST_TYPES = [
9-
"neRegular",
10-
"review",
11-
"opinion",
12-
"update",
13-
"podcast",
14-
"conversation",
15-
]
16-
EDITORIAL_SORT = ["title"]
5+
from loading_api_wrapper.settings import (
6+
API_URL,
7+
API_VERSION,
8+
EDITORIAL_POST_TYPES,
9+
EDITORIAL_SORT,
10+
USER_AGENT,
11+
)
1712

1813

1914
class LoadingApiWrapper:

loading_api_wrapper/settings.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
API_URL = "https://api.loading.se"
2+
API_VERSION = "v1"
3+
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
4+
EDITORIAL_SORT = ["title"]
5+
EDITORIAL_POST_TYPES = [
6+
"neRegular",
7+
"review",
8+
"opinion",
9+
"update",
10+
"podcast",
11+
"conversation",
12+
]

0 commit comments

Comments
 (0)