fnschool 20251020.82239.858__tar.gz → 20251021.80058.842__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.
Potentially problematic release.
This version of fnschool might be problematic. Click here for more details.
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/PKG-INFO +1 -1
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/__init__.py +1 -1
- fnschool-20251021.80058.842/src/fnschoo1/canteen/migrations/0018_alter_ingredient_updated_at.py +23 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/views.py +25 -34
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/fnschool.js +11 -1
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/PKG-INFO +1 -1
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/SOURCES.txt +1 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/LICENSE +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/README.md +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/pyproject.toml +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/setup.cfg +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/__init__.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/admin.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/apps.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/forms.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0001_initial.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0002_ingredient_is_disabled.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0003_consumption_is_disabled_alter_ingredient_is_disabled.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0004_alter_ingredient_name_category_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0005_alter_category_created_at_alter_category_name_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0006_category_is_disabled_alter_category_user_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0007_alter_consumption_amount_used_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0008_category_abbreviation_mealtype.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0009_alter_category_abbreviation_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0010_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0011_category_pin_to_consumptions_top.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0012_alter_ingredient_storage_date.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0013_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0014_category_priority.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0015_alter_category_options_alter_category_priority.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0016_consumption_unique_ingredient_date_of_using.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/0017_ingredient_updated_at_alter_category_created_at_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/migrations/__init__.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/models.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/category/create.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/category/delete.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/category/list.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/category/update.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/close.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/consumption/_create.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/consumption/create.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/ingredient/close.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/ingredient/create.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/ingredient/create_one.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/ingredient/delete.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/ingredient/list.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/ingredient/update.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/meal_type/create.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/meal_type/delete.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/meal_type/list.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/templates/canteen/meal_type/update.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/tests.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/urls.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/workbook/__init__.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/workbook/generate.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/__init__.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/_settings.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/asgi.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/settings.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/templatetags/__init__.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/templatetags/fnschool_tags.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/urls.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/views.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/wsgi.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/locale/en/LC_MESSAGES/django.mo +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/manage.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/__init__.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/admin.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/apps.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/forms.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/migrations/0001_initial.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/migrations/0002_alter_profile_bio.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/migrations/0003_alter_profile_options_alter_profile_address_and_more.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/migrations/0004_profile_gender.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/migrations/0005_alter_profile_gender.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/migrations/__init__.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/models.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/signals.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/templates/profiles/create.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/templates/profiles/detail.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/templates/profiles/edit.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/templates/profiles/log_in.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/templates/profiles/log_out.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/tests.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/urls.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/views.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/css/bootstrap.min.css +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/css/fnschool.css +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/images/favicon.ico +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/bootstrap.bundle.min.js +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/bootstrap.min.js +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/jquery.min.js +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/jquery.slim.min.js +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/popper.min.js +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/_content.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/_css.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/_js.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/content.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/header_content_footer.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/close.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/home.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/includes/_footer.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/includes/_header.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/includes/_navigation.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/includes/_paginator.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/registration/logged_out.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/registration/login.html +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/SOURCES.txt.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/dependency_links.txt +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/dependency_links.txt.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/entry_points.txt +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/entry_points.txt.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/requires.txt +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/requires.txt.py +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/top_level.txt +0 -0
- {fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/top_level.txt.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fnschool
|
|
3
|
-
Version:
|
|
3
|
+
Version: 20251021.80058.842
|
|
4
4
|
Summary: Just some school related scripts, without any ambition.
|
|
5
5
|
Author-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>, Larry W3i <larryw3i@yeah.net>
|
|
6
6
|
Maintainer-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>
|
fnschool-20251021.80058.842/src/fnschoo1/canteen/migrations/0018_alter_ingredient_updated_at.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Generated by Django 4.2.25 on 2025-10-20 16:57
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
(
|
|
10
|
+
"canteen",
|
|
11
|
+
"0017_ingredient_updated_at_alter_category_created_at_and_more",
|
|
12
|
+
),
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
operations = [
|
|
16
|
+
migrations.AlterField(
|
|
17
|
+
model_name="ingredient",
|
|
18
|
+
name="updated_at",
|
|
19
|
+
field=models.DateTimeField(
|
|
20
|
+
auto_now=True, null=True, verbose_name="更新时间"
|
|
21
|
+
),
|
|
22
|
+
),
|
|
23
|
+
]
|
|
@@ -97,6 +97,9 @@ quantity_header = (
|
|
|
97
97
|
"To prevent the number of decimal places in the unit "
|
|
98
98
|
+ 'price from becoming too large, "quantity" is '
|
|
99
99
|
+ "only allowed to be an integer."
|
|
100
|
+
+ " If your unit price is a decimal, please use a "
|
|
101
|
+
+ "smaller quantity unit and then expand the "
|
|
102
|
+
+ "quantity to an integer."
|
|
100
103
|
),
|
|
101
104
|
)
|
|
102
105
|
|
|
@@ -396,25 +399,26 @@ def edit_ingredient(request, ingredient_id):
|
|
|
396
399
|
|
|
397
400
|
if request.method == "POST":
|
|
398
401
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
total_price = form.instance.total_price
|
|
402
|
-
quantity = form.instance.quantity
|
|
402
|
+
total_price = request.POST.get("total_price")
|
|
403
|
+
quantity = request.POST.get("quantity")
|
|
403
404
|
|
|
404
405
|
[total_price0, quantity0], [total_price1, quantity1] = split_price(
|
|
405
406
|
total_price, quantity
|
|
406
407
|
)
|
|
407
408
|
|
|
409
|
+
form = IngredientForm(request.POST, instance=ingredient)
|
|
408
410
|
if total_price1:
|
|
409
411
|
unit_price_error_msg = _(
|
|
410
|
-
"The unit pricei ({unit_price}) has more than
|
|
412
|
+
"The unit pricei ({unit_price}) has more than {decimal_prec} decimal places and cannot be saved. Please modify it again."
|
|
411
413
|
).format(
|
|
412
414
|
unit_price=(
|
|
413
415
|
Decimal(str(total_price)) / Decimal(str(float(quantity)))
|
|
414
|
-
).normalize()
|
|
416
|
+
).normalize(),
|
|
417
|
+
decimal_prec=decimal_prec,
|
|
415
418
|
)
|
|
416
419
|
form.add_error("total_price", unit_price_error_msg)
|
|
417
420
|
form.add_error("quantity", unit_price_error_msg)
|
|
421
|
+
form.fields["total_price"].widget.attrs.update({"autofocus": ""})
|
|
418
422
|
return render(
|
|
419
423
|
request, "canteen/ingredient/update.html", {"form": form}
|
|
420
424
|
)
|
|
@@ -578,7 +582,7 @@ def create_ingredients(request):
|
|
|
578
582
|
created_at=datetime.now().date(),
|
|
579
583
|
)
|
|
580
584
|
|
|
581
|
-
storage_date = row[storage_date_header[0]]
|
|
585
|
+
storage_date = date_parser.parse(row[storage_date_header[0]])
|
|
582
586
|
name = row[ingredient_name_header[0]]
|
|
583
587
|
quantity_unit_name = row[quantity_unit_name_header[0]]
|
|
584
588
|
is_ignorable = not row[is_ignorable_header[0]] is np.nan
|
|
@@ -591,19 +595,6 @@ def create_ingredients(request):
|
|
|
591
595
|
)
|
|
592
596
|
|
|
593
597
|
if total_price1:
|
|
594
|
-
|
|
595
|
-
Ingredient.objects.create(
|
|
596
|
-
user=request.user,
|
|
597
|
-
storage_date=storage_date,
|
|
598
|
-
name=name + _("(1)"),
|
|
599
|
-
meal_type=meal_type,
|
|
600
|
-
category=category,
|
|
601
|
-
quantity=quantity0,
|
|
602
|
-
total_price=total_price0,
|
|
603
|
-
quantity_unit_name=quantity_unit_name,
|
|
604
|
-
is_ignorable=is_ignorable,
|
|
605
|
-
)
|
|
606
|
-
|
|
607
598
|
Ingredient.objects.create(
|
|
608
599
|
user=request.user,
|
|
609
600
|
storage_date=storage_date,
|
|
@@ -615,19 +606,19 @@ def create_ingredients(request):
|
|
|
615
606
|
quantity_unit_name=quantity_unit_name,
|
|
616
607
|
is_ignorable=is_ignorable,
|
|
617
608
|
)
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
609
|
+
name = name + _("(1)")
|
|
610
|
+
|
|
611
|
+
Ingredient.objects.create(
|
|
612
|
+
user=request.user,
|
|
613
|
+
storage_date=storage_date,
|
|
614
|
+
name=name,
|
|
615
|
+
meal_type=meal_type,
|
|
616
|
+
category=category,
|
|
617
|
+
quantity=quantity0,
|
|
618
|
+
total_price=total_price0,
|
|
619
|
+
quantity_unit_name=quantity_unit_name,
|
|
620
|
+
is_ignorable=is_ignorable,
|
|
621
|
+
)
|
|
631
622
|
|
|
632
623
|
return redirect("canteen:close_window")
|
|
633
624
|
|
|
@@ -674,7 +665,7 @@ def get_template_workbook_of_purchased_ingredients(request):
|
|
|
674
665
|
ws.column_dimensions[column_letter].width = len(h) + hans_len + 2
|
|
675
666
|
if c:
|
|
676
667
|
h_cell.comment = Comment(c, _("the FNSCHOOL Authors"))
|
|
677
|
-
|
|
668
|
+
ws.freeze_panes = "B2"
|
|
678
669
|
buffer = io.BytesIO()
|
|
679
670
|
wb.save(buffer)
|
|
680
671
|
buffer.seek(0)
|
|
Binary file
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/fnschool.js
RENAMED
|
@@ -8,7 +8,17 @@ function make_highlight(query, time_data) {
|
|
|
8
8
|
if (seconds_diff < 46) {
|
|
9
9
|
highlight_elements_toggled.push(element)
|
|
10
10
|
element.toggleClass('fn-highlight')
|
|
11
|
-
$(
|
|
11
|
+
var table_container = $(element.closest('.table-container'))
|
|
12
|
+
if (table_container.length) {
|
|
13
|
+
var container = table_container
|
|
14
|
+
var thead = $(element.closest('table').find('thead'))
|
|
15
|
+
var pos =
|
|
16
|
+
element.offset().top -
|
|
17
|
+
container.offset().top +
|
|
18
|
+
container.scrollTop() -
|
|
19
|
+
thead.height()
|
|
20
|
+
container.animate({ scrollTop: pos }, 1)
|
|
21
|
+
}
|
|
12
22
|
}
|
|
13
23
|
})
|
|
14
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fnschool
|
|
3
|
-
Version:
|
|
3
|
+
Version: 20251021.80058.842
|
|
4
4
|
Summary: Just some school related scripts, without any ambition.
|
|
5
5
|
Author-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>, Larry W3i <larryw3i@yeah.net>
|
|
6
6
|
Maintainer-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/SOURCES.txt
RENAMED
|
@@ -28,6 +28,7 @@ src/fnschoo1/canteen/migrations/0014_category_priority.py
|
|
|
28
28
|
src/fnschoo1/canteen/migrations/0015_alter_category_options_alter_category_priority.py
|
|
29
29
|
src/fnschoo1/canteen/migrations/0016_consumption_unique_ingredient_date_of_using.py
|
|
30
30
|
src/fnschoo1/canteen/migrations/0017_ingredient_updated_at_alter_category_created_at_and_more.py
|
|
31
|
+
src/fnschoo1/canteen/migrations/0018_alter_ingredient_updated_at.py
|
|
31
32
|
src/fnschoo1/canteen/migrations/__init__.py
|
|
32
33
|
src/fnschoo1/canteen/templates/canteen/close.html
|
|
33
34
|
src/fnschoo1/canteen/templates/canteen/category/create.html
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/canteen/__init__.py
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
|
|
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
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/__init__.py
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/_settings.py
RENAMED
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/fnschool/settings.py
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
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/__init__.py
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
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/profiles/signals.py
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
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/css/fnschool.css
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/images/favicon.ico
RENAMED
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/bootstrap.min.js
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/jquery.min.js
RENAMED
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/static/js/popper.min.js
RENAMED
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/_css.html
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/_js.html
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/base/content.html
RENAMED
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/close.html
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschoo1/templates/home.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/SOURCES.txt.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/requires.txt
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/requires.txt.py
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/top_level.txt
RENAMED
|
File without changes
|
{fnschool-20251020.82239.858 → fnschool-20251021.80058.842}/src/fnschool.egg-info/top_level.txt.py
RENAMED
|
File without changes
|