fnschool 20251015.81127.817__py3-none-any.whl → 20251016.81138.855__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 CHANGED
@@ -6,4 +6,4 @@ import random
6
6
  import sys
7
7
  from pathlib import Path
8
8
 
9
- __version__ = "20251015.81127.817"
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>
@@ -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 = _("Consumption List Title (Consumption List 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}")
@@ -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)
@@ -4,48 +4,7 @@
4
4
  {% trans "FNSCHOOL" %}
5
5
  {% endblock %}
6
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>
7
+ </div>
8
+ <script></script>
9
+ </style>
51
10
  {% endblock %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fnschool
3
- Version: 20251015.81127.817
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,4 +1,4 @@
1
- fnschoo1/__init__.py,sha256=Hx-9-YfTx_lziChxGNxSdlO4jOb42i66f9ajNcbIhUM,197
1
+ fnschoo1/__init__.py,sha256=FWI2MnMOAtU8xB9gFsN1qfkRHMWY_ZRoyvYuzl53BXc,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
@@ -36,14 +36,14 @@ fnschoo1/canteen/templates/canteen/ingredient/close.html,sha256=pLYeJmGaOEJKMUJd
36
36
  fnschoo1/canteen/templates/canteen/ingredient/create.html,sha256=xZvh0tP_cv2HPQ96JSHChO6Ni23tzHc5YJCUhE2yEqM,807
37
37
  fnschoo1/canteen/templates/canteen/ingredient/create_one.html,sha256=O8EPSvAnEZ-4VJiwFdoyxJrMOoMpRkH6CyfvWwHaVgc,599
38
38
  fnschoo1/canteen/templates/canteen/ingredient/delete.html,sha256=w1GK8vLTTBz4xolFce6ITZMNeBgv-XgMx9dkOykE8-A,1211
39
- fnschoo1/canteen/templates/canteen/ingredient/list.html,sha256=b3FC5bcprUau-TtRPdBlOdtbqlcIdDSdelzXvfm57OI,4205
39
+ fnschoo1/canteen/templates/canteen/ingredient/list.html,sha256=7w9Yyz_TuCxJHaFadTUedh_tQLvKTCYAh583vfEBT18,4623
40
40
  fnschoo1/canteen/templates/canteen/ingredient/update.html,sha256=VTlNSvTb-kck0S3bGtvxdJbYAtfszjtUEXP7OYva1FA,819
41
41
  fnschoo1/canteen/templates/canteen/meal_type/create.html,sha256=7Pe0RSGtd2G2IMHwnggr0Gzs23oBqpaPqWH5zlNzc_4,596
42
42
  fnschoo1/canteen/templates/canteen/meal_type/delete.html,sha256=1UmCyXD-6lbYl-IE63EnQCEXJr82rUCDvycI4bGuMoo,1551
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=Rfv1TamSFIKHzvUNlgnmrPmfmzrehPpuo5Hv8VF0yek,818
45
45
  fnschoo1/canteen/workbook/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
46
- fnschoo1/canteen/workbook/generate.py,sha256=EXWupVex_fj0zxK82hfews13t5R5yONQBbapl5lpZYc,85025
46
+ fnschoo1/canteen/workbook/generate.py,sha256=zXUhk2UPbndo_2YZG4N0KT2LFZpikYs4PYtJjAN6ftA,85219
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=91oVaDDXdXDZEYghtggnPcBDiUOBphnuLm4QwMZJhIQ,20313
56
+ fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo,sha256=Na8PMortGCPTRVhmJ8EBYdre6894lyuVAtmDXhF5VvY,20423
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
@@ -84,7 +84,7 @@ fnschoo1/static/js/jquery.min.js,sha256=np_WnfpAmUmEO_iheFAJKf6mbm0_laW3Ns4x7kjS
84
84
  fnschoo1/static/js/jquery.slim.min.js,sha256=p5YkbOjgHxX3hTadKlGuDW58NvJ1ldjjokDuDQ_5yXs,129962
85
85
  fnschoo1/static/js/popper.min.js,sha256=O2xdmtEow7gq3I7-0lKjshvxHkBe0hTWrMkbX2fy0XQ,36887
86
86
  fnschoo1/templates/close.html,sha256=pLYeJmGaOEJKMUJdZmYzz_n--l28IRDQ4fXvetP_Vsc,200
87
- fnschoo1/templates/home.html,sha256=4iq52z9BuEHyFk4jKcJSZEQBB6VqJ4dvr47L6C57tss,1106
87
+ fnschoo1/templates/home.html,sha256=34Sc9pdUN679YQE15Yp8jXtaPAcG5lyuGfX-GYJZOUc,193
88
88
  fnschoo1/templates/base/_content.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
89
89
  fnschoo1/templates/base/_css.html,sha256=I7We2o3BzNq4PBN72UOKAtXHkZ1Xb-eYP8N4bF3rm1w,16
90
90
  fnschoo1/templates/base/_js.html,sha256=E2mgj6LQjd37r660iG2cAIOfofwuwMC6SZ59fj6wUnA,443
@@ -96,14 +96,14 @@ fnschoo1/templates/includes/_navigation.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
96
96
  fnschoo1/templates/includes/_paginator.html,sha256=Z-Hxcdmun4SJ1YcHnWTDLfW8wrngROiBTwr4NZWaPP4,1246
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-20251015.81127.817.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
100
- fnschool-20251015.81127.817.dist-info/METADATA,sha256=Whacwebcw_8mlsKLCHqqO8KFOlWFouQh9rkNMhdkCSU,4752
101
- fnschool-20251015.81127.817.dist-info/SOURCES.txt.py,sha256=2LY2mshgNtxI3ICB-oBjyMYgJk2bQqeGFM5J5ay5TQs,4954
102
- fnschool-20251015.81127.817.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
103
- fnschool-20251015.81127.817.dist-info/dependency_links.txt.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
104
- fnschool-20251015.81127.817.dist-info/entry_points.txt,sha256=Ow5nChVFJY3O4TJAIE1ZydMev1MUtgRsT1b8eFP6728,54
105
- fnschool-20251015.81127.817.dist-info/entry_points.txt.py,sha256=7iOwIx_m9Y6xJt___BZHWJh27LV5hqWnUjmj77MoRys,47
106
- fnschool-20251015.81127.817.dist-info/requires.txt.py,sha256=PqRcHIQSMPUb271hacYrlSDHwB1WDZmlWUkh6RnBz_g,113
107
- fnschool-20251015.81127.817.dist-info/top_level.txt,sha256=s6ZKnNm94Q0-247a50eI7jDK98uPF6P2kC9Ovd3LUlM,9
108
- fnschool-20251015.81127.817.dist-info/top_level.txt.py,sha256=_7CbrSihm0dzBn_tTy2ass_Y2VlkVNT2eylE8mcfwHY,9
109
- fnschool-20251015.81127.817.dist-info/RECORD,,
99
+ fnschool-20251016.81138.855.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
100
+ fnschool-20251016.81138.855.dist-info/METADATA,sha256=dkcTkCZiTOvL0rbT0RvqHfIeYbeBKK4XRbS_--BX0po,4752
101
+ fnschool-20251016.81138.855.dist-info/SOURCES.txt.py,sha256=2LY2mshgNtxI3ICB-oBjyMYgJk2bQqeGFM5J5ay5TQs,4954
102
+ fnschool-20251016.81138.855.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
103
+ fnschool-20251016.81138.855.dist-info/dependency_links.txt.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
104
+ fnschool-20251016.81138.855.dist-info/entry_points.txt,sha256=Ow5nChVFJY3O4TJAIE1ZydMev1MUtgRsT1b8eFP6728,54
105
+ fnschool-20251016.81138.855.dist-info/entry_points.txt.py,sha256=7iOwIx_m9Y6xJt___BZHWJh27LV5hqWnUjmj77MoRys,47
106
+ fnschool-20251016.81138.855.dist-info/requires.txt.py,sha256=PqRcHIQSMPUb271hacYrlSDHwB1WDZmlWUkh6RnBz_g,113
107
+ fnschool-20251016.81138.855.dist-info/top_level.txt,sha256=s6ZKnNm94Q0-247a50eI7jDK98uPF6P2kC9Ovd3LUlM,9
108
+ fnschool-20251016.81138.855.dist-info/top_level.txt.py,sha256=_7CbrSihm0dzBn_tTy2ass_Y2VlkVNT2eylE8mcfwHY,9
109
+ fnschool-20251016.81138.855.dist-info/RECORD,,