fix: _exec returns conn for SQLite instead of cursor + add 6 new job boards (Bruntwork, ScaleArmy, crypto/web3)
Browse files- backend/config.py +30 -0
- backend/database.py +1 -2
backend/config.py
CHANGED
|
@@ -275,6 +275,36 @@ JOB_BOARDS = {
|
|
| 275 |
"search_url": "https://remotework.ng/?s={query}",
|
| 276 |
"type": "public", "region": "Africa/Remote", "icon": "global", "enabled": True,
|
| 277 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
},
|
| 279 |
}
|
| 280 |
|
|
|
|
| 275 |
"search_url": "https://remotework.ng/?s={query}",
|
| 276 |
"type": "public", "region": "Africa/Remote", "icon": "global", "enabled": True,
|
| 277 |
},
|
| 278 |
+
"bruntwork": {
|
| 279 |
+
"base_url": "https://bruntwork.io",
|
| 280 |
+
"search_url": "https://bruntwork.io/jobs?search={query}",
|
| 281 |
+
"type": "public", "region": "Remote/Global", "icon": "global", "enabled": True,
|
| 282 |
+
},
|
| 283 |
+
"scalearmy": {
|
| 284 |
+
"base_url": "https://scalearmy.com",
|
| 285 |
+
"search_url": "https://scalearmy.com/jobs?search={query}",
|
| 286 |
+
"type": "public", "region": "Remote/Global", "icon": "global", "enabled": True,
|
| 287 |
+
},
|
| 288 |
+
"cryptocurrencyjobs": {
|
| 289 |
+
"base_url": "https://cryptocurrencyjobs.co",
|
| 290 |
+
"search_url": "https://cryptocurrencyjobs.co/?search={query}",
|
| 291 |
+
"type": "public", "region": "Remote/Web3", "icon": "global", "enabled": True,
|
| 292 |
+
},
|
| 293 |
+
"web3career": {
|
| 294 |
+
"base_url": "https://web3.career",
|
| 295 |
+
"search_url": "https://web3.career/search?q={query}",
|
| 296 |
+
"type": "public", "region": "Remote/Web3", "icon": "global", "enabled": True,
|
| 297 |
+
},
|
| 298 |
+
"remote3": {
|
| 299 |
+
"base_url": "https://remote3.co",
|
| 300 |
+
"search_url": "https://remote3.co/jobs?q={query}",
|
| 301 |
+
"type": "public", "region": "Remote/Web3", "icon": "global", "enabled": True,
|
| 302 |
+
},
|
| 303 |
+
"blockchainwork": {
|
| 304 |
+
"base_url": "https://blockchain.work",
|
| 305 |
+
"search_url": "https://blockchain.work/jobs?q={query}",
|
| 306 |
+
"type": "public", "region": "Remote/Web3", "icon": "global", "enabled": True,
|
| 307 |
+
},
|
| 308 |
},
|
| 309 |
}
|
| 310 |
|
backend/database.py
CHANGED
|
@@ -252,8 +252,7 @@ def _cur(conn):
|
|
| 252 |
|
| 253 |
def _exec(conn, sql: str, params=()):
|
| 254 |
c = _cur(conn)
|
| 255 |
-
c.execute(_fix_sql(sql), params)
|
| 256 |
-
return c
|
| 257 |
|
| 258 |
|
| 259 |
def _exec_lastid(conn, sql: str, params=()):
|
|
|
|
| 252 |
|
| 253 |
def _exec(conn, sql: str, params=()):
|
| 254 |
c = _cur(conn)
|
| 255 |
+
return c.execute(_fix_sql(sql), params)
|
|
|
|
| 256 |
|
| 257 |
|
| 258 |
def _exec_lastid(conn, sql: str, params=()):
|