fnschool 20251018.80328.837__tar.gz → 20251018.81021.825__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.

Files changed (115) hide show
  1. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/PKG-INFO +1 -1
  2. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/__init__.py +1 -1
  3. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/consumption/create.html +15 -2
  4. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/workbook/generate.py +2 -1
  5. fnschool-20251018.81021.825/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  6. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/PKG-INFO +1 -1
  7. fnschool-20251018.80328.837/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  8. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/LICENSE +0 -0
  9. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/README.md +0 -0
  10. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/pyproject.toml +0 -0
  11. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/setup.cfg +0 -0
  12. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/__init__.py +0 -0
  13. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/admin.py +0 -0
  14. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/apps.py +0 -0
  15. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/forms.py +0 -0
  16. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0001_initial.py +0 -0
  17. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0002_ingredient_is_disabled.py +0 -0
  18. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0003_consumption_is_disabled_alter_ingredient_is_disabled.py +0 -0
  19. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0004_alter_ingredient_name_category_and_more.py +0 -0
  20. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0005_alter_category_created_at_alter_category_name_and_more.py +0 -0
  21. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0006_category_is_disabled_alter_category_user_and_more.py +0 -0
  22. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0007_alter_consumption_amount_used_and_more.py +0 -0
  23. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0008_category_abbreviation_mealtype.py +0 -0
  24. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0009_alter_category_abbreviation_and_more.py +0 -0
  25. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0010_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  26. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0011_category_pin_to_consumptions_top.py +0 -0
  27. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0012_alter_ingredient_storage_date.py +0 -0
  28. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0013_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  29. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0014_category_priority.py +0 -0
  30. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0015_alter_category_options_alter_category_priority.py +0 -0
  31. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/0016_consumption_unique_ingredient_date_of_using.py +0 -0
  32. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/migrations/__init__.py +0 -0
  33. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/models.py +0 -0
  34. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/category/create.html +0 -0
  35. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/category/delete.html +0 -0
  36. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/category/list.html +0 -0
  37. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/category/update.html +0 -0
  38. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/close.html +0 -0
  39. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/consumption/_create.html +0 -0
  40. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/ingredient/close.html +0 -0
  41. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/ingredient/create.html +0 -0
  42. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/ingredient/create_one.html +0 -0
  43. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/ingredient/delete.html +0 -0
  44. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/ingredient/list.html +0 -0
  45. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/ingredient/update.html +0 -0
  46. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/meal_type/create.html +0 -0
  47. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/meal_type/delete.html +0 -0
  48. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/meal_type/list.html +0 -0
  49. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/templates/canteen/meal_type/update.html +0 -0
  50. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/tests.py +0 -0
  51. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/urls.py +0 -0
  52. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/views.py +0 -0
  53. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/canteen/workbook/__init__.py +0 -0
  54. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/__init__.py +0 -0
  55. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/asgi.py +0 -0
  56. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/settings.py +0 -0
  57. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/templatetags/__init__.py +0 -0
  58. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/templatetags/fnschool_tags.py +0 -0
  59. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/urls.py +0 -0
  60. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/views.py +0 -0
  61. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/fnschool/wsgi.py +0 -0
  62. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/locale/en/LC_MESSAGES/django.mo +0 -0
  63. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/manage.py +0 -0
  64. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/__init__.py +0 -0
  65. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/admin.py +0 -0
  66. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/apps.py +0 -0
  67. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/forms.py +0 -0
  68. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/migrations/0001_initial.py +0 -0
  69. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/migrations/0002_alter_profile_bio.py +0 -0
  70. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/migrations/0003_alter_profile_options_alter_profile_address_and_more.py +0 -0
  71. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/migrations/0004_profile_gender.py +0 -0
  72. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/migrations/0005_alter_profile_gender.py +0 -0
  73. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/migrations/__init__.py +0 -0
  74. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/models.py +0 -0
  75. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/signals.py +0 -0
  76. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/templates/profiles/create.html +0 -0
  77. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/templates/profiles/detail.html +0 -0
  78. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/templates/profiles/edit.html +0 -0
  79. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/templates/profiles/log_in.html +0 -0
  80. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/templates/profiles/log_out.html +0 -0
  81. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/tests.py +0 -0
  82. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/urls.py +0 -0
  83. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/profiles/views.py +0 -0
  84. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/css/bootstrap.min.css +0 -0
  85. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/css/fnschool.css +0 -0
  86. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/images/favicon.ico +0 -0
  87. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/js/bootstrap.bundle.min.js +0 -0
  88. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/js/bootstrap.min.js +0 -0
  89. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/js/fnschool.js +0 -0
  90. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/js/jquery.min.js +0 -0
  91. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/js/jquery.slim.min.js +0 -0
  92. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/static/js/popper.min.js +0 -0
  93. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/base/_content.html +0 -0
  94. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/base/_css.html +0 -0
  95. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/base/_js.html +0 -0
  96. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/base/content.html +0 -0
  97. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/base/header_content_footer.html +0 -0
  98. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/close.html +0 -0
  99. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/home.html +0 -0
  100. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/includes/_footer.html +0 -0
  101. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/includes/_header.html +0 -0
  102. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/includes/_navigation.html +0 -0
  103. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/includes/_paginator.html +0 -0
  104. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/registration/logged_out.html +0 -0
  105. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschoo1/templates/registration/login.html +0 -0
  106. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/SOURCES.txt +0 -0
  107. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/SOURCES.txt.py +0 -0
  108. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/dependency_links.txt +0 -0
  109. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/dependency_links.txt.py +0 -0
  110. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/entry_points.txt +0 -0
  111. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/entry_points.txt.py +0 -0
  112. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/requires.txt +0 -0
  113. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/requires.txt.py +0 -0
  114. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/src/fnschool.egg-info/top_level.txt +0 -0
  115. {fnschool-20251018.80328.837 → fnschool-20251018.81021.825}/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: 20251018.80328.837
3
+ Version: 20251018.81021.825
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__ = "20251018.80328.837"
9
+ __version__ = "20251018.81021.825"
@@ -103,6 +103,15 @@
103
103
  </button>
104
104
  <select class="workbook-month-select form-select float-end mx-2"
105
105
  style="width:118px"></select>
106
+ <div class="form-check float-end mx-1 pt-2">
107
+ <label class="form-check-label" for="include_food_sheets">
108
+ {% trans 'Ingredient Sheets are also included.' %}
109
+ </label>
110
+ <input class="form-check-input"
111
+ type="checkbox"
112
+ value=""
113
+ id="include_food_sheets">
114
+ </div>
106
115
  </div>
107
116
  {{ ingredient_ids|json_script:'ingredient_ids' }}
108
117
  {{ months|json_script:'months' }}
@@ -115,7 +124,6 @@
115
124
  var months = JSON.parse($("#months").text())
116
125
  var meal_types = JSON.parse($("#meal_types").text())
117
126
  var date_range = JSON.parse($("#date_range").text())
118
-
119
127
  var storage_date_start = $('#storage_date_start').text().replace(new RegExp('"', 'g'), "")
120
128
 
121
129
  var dont_submit = false
@@ -387,8 +395,13 @@
387
395
  });
388
396
 
389
397
  function generate_spreadsheet() {
398
+ var include_food_sheets = $("#include_food_sheets").is(':checked')
390
399
  var month = $(".workbook-month-select").val()
391
- window.open(`/canteen/generate_spreadsheet/${month}`, 'generate_spreadsheet');
400
+ if (include_food_sheets) {
401
+ window.open(`/canteen/generate_spreadsheet/${month}?include_food_sheets=true`, 'generate_spreadsheet');
402
+ } else {
403
+ window.open(`/canteen/generate_spreadsheet/${month}`, 'generate_spreadsheet');
404
+ }
392
405
  }
393
406
 
394
407
  function set_consumptions_table_size() {
@@ -2680,7 +2680,8 @@ class CanteenWorkBook:
2680
2680
  self.fill_in_consumption_sheet()
2681
2681
  self.fill_in_consumption_list_sheet()
2682
2682
  self.fill_in_surplus_sheet()
2683
- self.fill_in_food_sheets()
2683
+ if self.request.GET.get("include_food_sheets","") == "true":
2684
+ self.fill_in_food_sheets()
2684
2685
 
2685
2686
  return self.wb
2686
2687
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fnschool
3
- Version: 20251018.80328.837
3
+ Version: 20251018.81021.825
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>