fnschool 20251018.80328.837__py3-none-any.whl → 20251018.80430.821__py3-none-any.whl
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.
- fnschoo1/__init__.py +1 -1
- fnschoo1/canteen/templates/canteen/consumption/create.html +15 -2
- fnschoo1/canteen/workbook/generate.py +2 -1
- fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/METADATA +1 -1
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/RECORD +15 -15
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/SOURCES.txt.py +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/WHEEL +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/dependency_links.txt.py +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/entry_points.txt +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/entry_points.txt.py +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/licenses/LICENSE +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/requires.txt.py +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/top_level.txt +0 -0
- {fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/top_level.txt.py +0 -0
fnschoo1/__init__.py
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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
|
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fnschool
|
|
3
|
-
Version: 20251018.
|
|
3
|
+
Version: 20251018.80430.821
|
|
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,4 +1,4 @@
|
|
|
1
|
-
fnschoo1/__init__.py,sha256=
|
|
1
|
+
fnschoo1/__init__.py,sha256=Pi_r5hmFJR0XScaHz6S3PM59J9kzXP8DDGlLmoPa97o,197
|
|
2
2
|
fnschoo1/manage.py,sha256=VZIol9q_Dhg81_KJ9Jfq-L5O8ubQelShkA-cZVJ1S6E,1539
|
|
3
3
|
fnschoo1/canteen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
fnschoo1/canteen/admin.py,sha256=suMo4x8I3JBxAFBVIdE-5qnqZ6JAZV0FESABHOSc-vg,63
|
|
@@ -31,7 +31,7 @@ fnschoo1/canteen/templates/canteen/category/delete.html,sha256=iPmGAB2r8K9DqBTp9
|
|
|
31
31
|
fnschoo1/canteen/templates/canteen/category/list.html,sha256=QLO2GA13Co48Ijd0DCCN4lcMm1fgJqT2CprH5VdLZPw,2148
|
|
32
32
|
fnschoo1/canteen/templates/canteen/category/update.html,sha256=UnCI95eqsQXfdUMdJXWUf1qNVWM9ZgsP03ayZ_Nrak8,831
|
|
33
33
|
fnschoo1/canteen/templates/canteen/consumption/_create.html,sha256=tXlJcd566D9sYbsnj5KN-m0lyobT2AwwYt9oxUHbn4M,1026
|
|
34
|
-
fnschoo1/canteen/templates/canteen/consumption/create.html,sha256=
|
|
34
|
+
fnschoo1/canteen/templates/canteen/consumption/create.html,sha256=Wy30E3bnOcP7D1LdqtZhp6WUCuJfuCiUmmSmlj6HhGQ,16707
|
|
35
35
|
fnschoo1/canteen/templates/canteen/ingredient/close.html,sha256=pLYeJmGaOEJKMUJdZmYzz_n--l28IRDQ4fXvetP_Vsc,200
|
|
36
36
|
fnschoo1/canteen/templates/canteen/ingredient/create.html,sha256=i4ajPDpXBTUp08lIiwn0wZoNEohyXlX3G64zG1lmIcs,839
|
|
37
37
|
fnschoo1/canteen/templates/canteen/ingredient/create_one.html,sha256=y9EAKXmyIrlp5-DxHd86l1rMtB16KuOjPMbPiLAN_ag,615
|
|
@@ -43,7 +43,7 @@ fnschoo1/canteen/templates/canteen/meal_type/delete.html,sha256=i9PBX3ShXU4Az62M
|
|
|
43
43
|
fnschoo1/canteen/templates/canteen/meal_type/list.html,sha256=c5kJUE1OgpRtSrMV4wFwL_gbRSaX_XMM4Zt1JTx34_g,1907
|
|
44
44
|
fnschoo1/canteen/templates/canteen/meal_type/update.html,sha256=vqqyuC1m2CnPd3KrcjA8t4hbJslT001s4XvcYpkQmO0,834
|
|
45
45
|
fnschoo1/canteen/workbook/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
46
|
-
fnschoo1/canteen/workbook/generate.py,sha256=
|
|
46
|
+
fnschoo1/canteen/workbook/generate.py,sha256=Jc22Fpg-xAcAOgkzl-LK81NxxaNR05x1Js9kMTtG5XM,109427
|
|
47
47
|
fnschoo1/fnschool/__init__.py,sha256=TmHhzykpKNMoMf6eD-EKvbvmnlzs1XGHtvD55ae1sXs,287
|
|
48
48
|
fnschoo1/fnschool/asgi.py,sha256=kzkqosS10uBlyBX53EXcsATcvEZmac6nsPzyOHCuucE,393
|
|
49
49
|
fnschoo1/fnschool/settings.py,sha256=l9Y1iQCivSfmsNfnHltfXLzxP6gG4VMIL4GEZgAp8YM,4357
|
|
@@ -53,7 +53,7 @@ fnschoo1/fnschool/wsgi.py,sha256=dQq4S0vZWCz8w5R9KooJeLYTVFXvEgJRYe7NFZwVxU8,393
|
|
|
53
53
|
fnschoo1/fnschool/templatetags/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
54
54
|
fnschoo1/fnschool/templatetags/fnschool_tags.py,sha256=l5Zov4VlQKpz-69SFftP4kXyMymz-a0D5F_ss_eiFc4,568
|
|
55
55
|
fnschoo1/locale/en/LC_MESSAGES/django.mo,sha256=M8AB6fmjwlEd761iFlasNWdiEYfE-2nIwBoioGtEVUo,404
|
|
56
|
-
fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo,sha256=
|
|
56
|
+
fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo,sha256=FgrQvpbmFej9tjCMnRf6evjeAbA0ofCuUpFlCIxkccs,22621
|
|
57
57
|
fnschoo1/profiles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
58
|
fnschoo1/profiles/admin.py,sha256=93UCvdODI63KzCDfFFnKmfvCMGCp6FCG9WErE91i79Y,522
|
|
59
59
|
fnschoo1/profiles/apps.py,sha256=WDu6eceFnDkBFMqquAolMZMo7XPb0ah6l2q2AruTrl4,215
|
|
@@ -96,14 +96,14 @@ fnschoo1/templates/includes/_navigation.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
96
96
|
fnschoo1/templates/includes/_paginator.html,sha256=Q-FRCODFNlETjn2yX18IfhctRWfqEgEnIc5LcdHzKSo,1262
|
|
97
97
|
fnschoo1/templates/registration/logged_out.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
98
|
fnschoo1/templates/registration/login.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
|
-
fnschool-20251018.
|
|
100
|
-
fnschool-20251018.
|
|
101
|
-
fnschool-20251018.
|
|
102
|
-
fnschool-20251018.
|
|
103
|
-
fnschool-20251018.
|
|
104
|
-
fnschool-20251018.
|
|
105
|
-
fnschool-20251018.
|
|
106
|
-
fnschool-20251018.
|
|
107
|
-
fnschool-20251018.
|
|
108
|
-
fnschool-20251018.
|
|
109
|
-
fnschool-20251018.
|
|
99
|
+
fnschool-20251018.80430.821.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
|
|
100
|
+
fnschool-20251018.80430.821.dist-info/METADATA,sha256=B1JtREEGlCidGobUBN1c7_kJtw1UkNVfAn_KSkB3h0Q,4752
|
|
101
|
+
fnschool-20251018.80430.821.dist-info/SOURCES.txt.py,sha256=2LY2mshgNtxI3ICB-oBjyMYgJk2bQqeGFM5J5ay5TQs,4954
|
|
102
|
+
fnschool-20251018.80430.821.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
103
|
+
fnschool-20251018.80430.821.dist-info/dependency_links.txt.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
104
|
+
fnschool-20251018.80430.821.dist-info/entry_points.txt,sha256=Ow5nChVFJY3O4TJAIE1ZydMev1MUtgRsT1b8eFP6728,54
|
|
105
|
+
fnschool-20251018.80430.821.dist-info/entry_points.txt.py,sha256=7iOwIx_m9Y6xJt___BZHWJh27LV5hqWnUjmj77MoRys,47
|
|
106
|
+
fnschool-20251018.80430.821.dist-info/requires.txt.py,sha256=PqRcHIQSMPUb271hacYrlSDHwB1WDZmlWUkh6RnBz_g,113
|
|
107
|
+
fnschool-20251018.80430.821.dist-info/top_level.txt,sha256=s6ZKnNm94Q0-247a50eI7jDK98uPF6P2kC9Ovd3LUlM,9
|
|
108
|
+
fnschool-20251018.80430.821.dist-info/top_level.txt.py,sha256=_7CbrSihm0dzBn_tTy2ass_Y2VlkVNT2eylE8mcfwHY,9
|
|
109
|
+
fnschool-20251018.80430.821.dist-info/RECORD,,
|
{fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/SOURCES.txt.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/entry_points.txt.py
RENAMED
|
File without changes
|
{fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/requires.txt.py
RENAMED
|
File without changes
|
{fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/top_level.txt
RENAMED
|
File without changes
|
{fnschool-20251018.80328.837.dist-info → fnschool-20251018.80430.821.dist-info}/top_level.txt.py
RENAMED
|
File without changes
|