fnschool 20251015.80844.859__tar.gz → 20251016.81138.855__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.
Files changed (116) hide show
  1. {fnschool-20251015.80844.859/src/fnschool.egg-info → fnschool-20251016.81138.855}/PKG-INFO +1 -1
  2. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/__init__.py +1 -1
  3. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/ingredient/list.html +10 -1
  4. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/views.py +1 -1
  5. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/workbook/generate.py +10 -4
  6. fnschool-20251016.81138.855/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  7. fnschool-20251016.81138.855/src/fnschoo1/templates/home.html +10 -0
  8. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855/src/fnschool.egg-info}/PKG-INFO +1 -1
  9. fnschool-20251015.80844.859/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  10. fnschool-20251015.80844.859/src/fnschoo1/templates/home.html +0 -51
  11. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/LICENSE +0 -0
  12. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/README.md +0 -0
  13. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/pyproject.toml +0 -0
  14. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/setup.cfg +0 -0
  15. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/__init__.py +0 -0
  16. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/admin.py +0 -0
  17. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/apps.py +0 -0
  18. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/forms.py +0 -0
  19. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0001_initial.py +0 -0
  20. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0002_ingredient_is_disabled.py +0 -0
  21. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0003_consumption_is_disabled_alter_ingredient_is_disabled.py +0 -0
  22. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0004_alter_ingredient_name_category_and_more.py +0 -0
  23. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0005_alter_category_created_at_alter_category_name_and_more.py +0 -0
  24. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0006_category_is_disabled_alter_category_user_and_more.py +0 -0
  25. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0007_alter_consumption_amount_used_and_more.py +0 -0
  26. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0008_category_abbreviation_mealtype.py +0 -0
  27. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0009_alter_category_abbreviation_and_more.py +0 -0
  28. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0010_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  29. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0011_category_pin_to_consumptions_top.py +0 -0
  30. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0012_alter_ingredient_storage_date.py +0 -0
  31. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0013_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  32. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0014_category_priority.py +0 -0
  33. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0015_alter_category_options_alter_category_priority.py +0 -0
  34. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/0016_consumption_unique_ingredient_date_of_using.py +0 -0
  35. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/migrations/__init__.py +0 -0
  36. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/models.py +0 -0
  37. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/category/create.html +0 -0
  38. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/category/delete.html +0 -0
  39. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/category/list.html +0 -0
  40. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/category/update.html +0 -0
  41. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/close.html +0 -0
  42. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/consumption/_create.html +0 -0
  43. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/consumption/create.html +0 -0
  44. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/ingredient/close.html +0 -0
  45. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/ingredient/create.html +0 -0
  46. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/ingredient/create_one.html +0 -0
  47. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/ingredient/delete.html +0 -0
  48. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/ingredient/update.html +0 -0
  49. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/meal_type/create.html +0 -0
  50. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/meal_type/delete.html +0 -0
  51. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/meal_type/list.html +0 -0
  52. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/templates/canteen/meal_type/update.html +0 -0
  53. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/tests.py +0 -0
  54. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/urls.py +0 -0
  55. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/canteen/workbook/__init__.py +0 -0
  56. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/__init__.py +0 -0
  57. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/asgi.py +0 -0
  58. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/settings.py +0 -0
  59. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/templatetags/__init__.py +0 -0
  60. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/templatetags/fnschool_tags.py +0 -0
  61. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/urls.py +0 -0
  62. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/views.py +0 -0
  63. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/fnschool/wsgi.py +0 -0
  64. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/locale/en/LC_MESSAGES/django.mo +0 -0
  65. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/manage.py +0 -0
  66. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/__init__.py +0 -0
  67. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/admin.py +0 -0
  68. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/apps.py +0 -0
  69. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/forms.py +0 -0
  70. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/migrations/0001_initial.py +0 -0
  71. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/migrations/0002_alter_profile_bio.py +0 -0
  72. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/migrations/0003_alter_profile_options_alter_profile_address_and_more.py +0 -0
  73. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/migrations/0004_profile_gender.py +0 -0
  74. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/migrations/0005_alter_profile_gender.py +0 -0
  75. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/migrations/__init__.py +0 -0
  76. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/models.py +0 -0
  77. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/signals.py +0 -0
  78. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/templates/profiles/create.html +0 -0
  79. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/templates/profiles/detail.html +0 -0
  80. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/templates/profiles/edit.html +0 -0
  81. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/templates/profiles/log_in.html +0 -0
  82. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/templates/profiles/log_out.html +0 -0
  83. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/tests.py +0 -0
  84. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/urls.py +0 -0
  85. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/profiles/views.py +0 -0
  86. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/css/bootstrap.min.css +0 -0
  87. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/css/fnschool.css +0 -0
  88. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/images/favicon.ico +0 -0
  89. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/js/bootstrap.bundle.min.js +0 -0
  90. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/js/bootstrap.min.js +0 -0
  91. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/js/fnschool.js +0 -0
  92. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/js/jquery.min.js +0 -0
  93. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/js/jquery.slim.min.js +0 -0
  94. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/static/js/popper.min.js +0 -0
  95. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/base/_content.html +0 -0
  96. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/base/_css.html +0 -0
  97. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/base/_js.html +0 -0
  98. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/base/content.html +0 -0
  99. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/base/header_content_footer.html +0 -0
  100. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/close.html +0 -0
  101. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/includes/_footer.html +0 -0
  102. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/includes/_header.html +0 -0
  103. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/includes/_navigation.html +0 -0
  104. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/includes/_paginator.html +0 -0
  105. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/registration/logged_out.html +0 -0
  106. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschoo1/templates/registration/login.html +0 -0
  107. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/SOURCES.txt +0 -0
  108. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/SOURCES.txt.py +0 -0
  109. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/dependency_links.txt +0 -0
  110. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/dependency_links.txt.py +0 -0
  111. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/entry_points.txt +0 -0
  112. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/entry_points.txt.py +0 -0
  113. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/requires.txt +0 -0
  114. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/requires.txt.py +0 -0
  115. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/src/fnschool.egg-info/top_level.txt +0 -0
  116. {fnschool-20251015.80844.859 → fnschool-20251016.81138.855}/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: 20251015.80844.859
3
+ Version: 20251016.81138.855
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>
@@ -6,4 +6,4 @@ import random
6
6
  import sys
7
7
  from pathlib import Path
8
8
 
9
- __version__ = "20251015.80844.859"
9
+ __version__ = "20251016.81138.855"
@@ -56,7 +56,16 @@
56
56
  <tbody>
57
57
  {% for ingredient in page_obj %}
58
58
  <tr>
59
- <th scope="row">{{ forloop.counter }}</th>
59
+ <th scope="row">
60
+ <div class="form-check"
61
+ title="{% trans 'It helps you check the ingredients.' %}">
62
+ <input type="checkbox"
63
+ class="form-check-input"
64
+ id="ingredient_free_nark_{{ ingredient.id }}" />
65
+ <label class="form-check-label"
66
+ for="ingredient_free_nark_{{ ingredient.id }}">{{ forloop.counter }}</label>
67
+ </div>
68
+ </th>
60
69
  <td>{{ ingredient.storage_date }}</td>
61
70
  <td>{{ ingredient.name }}</td>
62
71
  <td>{{ ingredient.meal_type }}</td>
@@ -246,7 +246,7 @@ def create_consumptions(request, ingredient_id=None):
246
246
  & Q(is_ignorable=False)
247
247
  )
248
248
  ingredients = Ingredient.objects
249
- print("by_week", by_week, "rapidly", rapidly)
249
+
250
250
  ingredients = (
251
251
  ingredients.filter(queries).order_by(
252
252
  "name", "storage_date", "meal_type__name", "category__name"
@@ -907,7 +907,9 @@ class CanteenWorkBook:
907
907
 
908
908
  title_cell_row_num = row_num
909
909
  title_cell = sheet.cell(title_cell_row_num, 1)
910
- title_cell.value = _("Storage List (Storage Sheet)")
910
+ title_cell.value = _(
911
+ "Consumption List Title (Consumption List Sheet)"
912
+ )
911
913
  title_cell.alignment = self.center_alignment
912
914
  title_cell.font = self.font_20_bold
913
915
  sheet.merge_cells(f"A{title_cell_row_num}:H{title_cell_row_num}")
@@ -1177,7 +1179,7 @@ class CanteenWorkBook:
1177
1179
  ).all()
1178
1180
  ingredient_row_height = 0.18
1179
1181
  ingredient_rows_height = ingredient_rows_count * 0.18
1180
- storage_dates = list(set([i.storage_date for i in ingredients]))
1182
+ storage_dates = sorted(list(set([i.storage_date for i in ingredients])))
1181
1183
 
1182
1184
  storaged_ingredients = []
1183
1185
  for storage_date in storage_dates:
@@ -1952,7 +1954,7 @@ class CanteenWorkBook:
1952
1954
  _split_ingredients += [
1953
1955
  Ingredient(
1954
1956
  user=user,
1955
- storage_date=None,
1957
+ storage_date=self.date_end,
1956
1958
  name="",
1957
1959
  meal_type=_split_ingredient0.meal_type,
1958
1960
  category=_split_ingredient0.category,
@@ -1965,6 +1967,10 @@ class CanteenWorkBook:
1965
1967
  ingredient_rows_count - len(_split_ingredients)
1966
1968
  )
1967
1969
  ]
1970
+
1971
+ _split_ingredients = sorted(
1972
+ _split_ingredients, key=lambda i: (i.storage_date)
1973
+ )
1968
1974
  category_ingredients.append([category, _split_ingredients])
1969
1975
 
1970
1976
  for index, (category, c_ingredients) in enumerate(category_ingredients):
@@ -2032,7 +2038,7 @@ class CanteenWorkBook:
2032
2038
  month=ingredient.storage_date.month,
2033
2039
  day=ingredient.storage_date.day,
2034
2040
  )
2035
- if ingredient.storage_date
2041
+ if ingredient.storage_date and ingredient.name
2036
2042
  else ""
2037
2043
  )
2038
2044
  name_cell = sheet.cell(ingredient_row_num, 2)
@@ -0,0 +1,10 @@
1
+ {% extends "base/header_content_footer.html" %}
2
+ {% load static %}
3
+ {% block title %}
4
+ {% trans "FNSCHOOL" %}
5
+ {% endblock %}
6
+ {% block content %}
7
+ </div>
8
+ <script></script>
9
+ </style>
10
+ {% endblock %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fnschool
3
- Version: 20251015.80844.859
3
+ Version: 20251016.81138.855
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>
@@ -1,51 +0,0 @@
1
- {% extends "base/header_content_footer.html" %}
2
- {% load static %}
3
- {% block title %}
4
- {% trans "FNSCHOOL" %}
5
- {% endblock %}
6
- {% block content %}
7
- <script>
8
- // $('body').addClass( 'aurora');
9
- </script>
10
- <style>
11
- .aurora {
12
- width: 100%;
13
- height: 100vh;
14
- position: relative;
15
- overflow: hidden;
16
- }
17
-
18
- .aurora::before {
19
- content: "";
20
- position: absolute;
21
- top: -50%;
22
- left: -50%;
23
- width: 200%;
24
- height: 200%;
25
- background: linear-gradient(to right, #00ff00, #0000ff, #ff0000, #ff00ff, #00ff00);
26
- animation: aurora-animation 50s linear infinite;
27
- }
28
-
29
- .aurora::after {
30
- content: "";
31
- position: absolute;
32
- top: -50%;
33
- left: -50%;
34
- width: 200%;
35
- height: 200%;
36
- background: linear-gradient(to right, #00ff00, #0000ff, #ff0000, #ff00ff, #00ff00);
37
- opacity: 0.1;
38
- animation: aurora-animation 30s linear infinite;
39
- }
40
-
41
- @keyframes aurora-animation {
42
- 0% {
43
- transform: rotate(0deg);
44
- }
45
-
46
- 100% {
47
- transform: rotate(360deg);
48
- }
49
- }
50
- </style>
51
- {% endblock %}