structables 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {structables-0.3.1 → structables-0.3.2}/PKG-INFO +1 -1
- {structables-0.3.1 → structables-0.3.2}/pyproject.toml +1 -1
- {structables-0.3.1 → structables-0.3.2}/src/structables/utils/helpers.py +14 -3
- {structables-0.3.1 → structables-0.3.2}/.gitignore +0 -0
- {structables-0.3.1 → structables-0.3.2}/LICENSE +0 -0
- {structables-0.3.1 → structables-0.3.2}/README.md +0 -0
- {structables-0.3.1 → structables-0.3.2}/cronjob.txt +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/__init__.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/config.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/main.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/routes/__init__.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/routes/category.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/routes/contest.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/routes/main.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/routes/member.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/routes/proxy.py +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/css/style.css +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/dist/css/bootstrap.min.css +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/dist/css/bootstrap.min.css.map +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/dist/js/bootstrap.bundle.min.js +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/dist/js/bootstrap.bundle.min.js.map +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/img/logo.png +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/img/logo_lg.png +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/static/img/magnifying-glass-solid.svg +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/400.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/404.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/429.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/500.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/archives.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/article-review.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/article.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/base.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/category.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/collection.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/contest.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/contests.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/footer.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/header.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/iframe.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/index.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/member-instructables.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/member.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/privacypolicy.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/projects.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/sitemap.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/templates/style.html +0 -0
- {structables-0.3.1 → structables-0.3.2}/src/structables/utils/data.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: structables
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A simple frontend for Instructables
|
|
5
5
|
Project-URL: Homepage, https://git.private.coffee/privatecoffee/structables
|
|
6
6
|
Project-URL: Bug Tracker, https://git.private.coffee/privatecoffee/structables/issues
|
|
@@ -306,9 +306,14 @@ def category_page(app, name, teachers=False):
|
|
|
306
306
|
):
|
|
307
307
|
channels.append(channel["channel"])
|
|
308
308
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
if teachers:
|
|
310
|
+
category_ibles, total = projects_search(
|
|
311
|
+
app, teachers=True, page=page, filter_by="featureFlag:=true"
|
|
312
|
+
)
|
|
313
|
+
else:
|
|
314
|
+
category_ibles, total = projects_search(
|
|
315
|
+
app, category=name, page=page, filter_by="featureFlag:=true"
|
|
316
|
+
)
|
|
312
317
|
|
|
313
318
|
for ible in category_ibles:
|
|
314
319
|
link = f"/{ible['document']['urlString']}"
|
|
@@ -352,6 +357,7 @@ def projects_search(
|
|
|
352
357
|
app,
|
|
353
358
|
query="*",
|
|
354
359
|
category="",
|
|
360
|
+
teachers=False,
|
|
355
361
|
channel="",
|
|
356
362
|
filter_by="",
|
|
357
363
|
page=1,
|
|
@@ -371,6 +377,11 @@ def projects_search(
|
|
|
371
377
|
filter_by += " && "
|
|
372
378
|
filter_by += f"channel:={channel}"
|
|
373
379
|
|
|
380
|
+
if teachers:
|
|
381
|
+
if filter_by:
|
|
382
|
+
filter_by += " && "
|
|
383
|
+
filter_by += "teachers:=Teachers"
|
|
384
|
+
|
|
374
385
|
query = quote(query)
|
|
375
386
|
filter_by = quote(filter_by)
|
|
376
387
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structables-0.3.1 → structables-0.3.2}/src/structables/static/dist/css/bootstrap.min.css.map
RENAMED
|
File without changes
|
{structables-0.3.1 → structables-0.3.2}/src/structables/static/dist/js/bootstrap.bundle.min.js
RENAMED
|
File without changes
|
{structables-0.3.1 → structables-0.3.2}/src/structables/static/dist/js/bootstrap.bundle.min.js.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structables-0.3.1 → structables-0.3.2}/src/structables/static/img/magnifying-glass-solid.svg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|