fnschool 20250109.80500.803__tar.gz → 20250109.80531.837__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 (83) hide show
  1. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/PKG-INFO +1 -1
  2. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/__init__.py +1 -1
  3. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/base.py +3 -2
  4. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/food.py +1 -1
  5. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool.egg-info/PKG-INFO +1 -1
  6. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/LICENSE +0 -0
  7. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/README.md +0 -0
  8. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/pyproject.toml +0 -0
  9. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/setup.cfg +0 -0
  10. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/__main__.py +0 -0
  11. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/app.py +0 -0
  12. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/__init__.py +0 -0
  13. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/__main__.py +0 -0
  14. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/bill.py +0 -0
  15. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/canteen.py +0 -0
  16. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/canteen.toml +0 -0
  17. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/config.py +0 -0
  18. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/consume.py +0 -0
  19. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/consuming.py +0 -0
  20. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/currency.py +0 -0
  21. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/data/bill.i18n.xlsx +0 -0
  22. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/data/bill.xlsx +0 -0
  23. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/data/consuming.xlsx +0 -0
  24. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/data/purchase_list.xlsx +0 -0
  25. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/entry.py +0 -0
  26. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/food.py +0 -0
  27. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/food_classes.py +0 -0
  28. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/food_classes.toml +0 -0
  29. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/food_recount.toml +0 -0
  30. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/food_recounts.toml +0 -0
  31. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/operator.py +0 -0
  32. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/path.py +0 -0
  33. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/__init__.py +0 -0
  34. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/consuming.py +0 -0
  35. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/consumingsum.py +0 -0
  36. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/cover.py +0 -0
  37. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/ctspreadsheet.py +0 -0
  38. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/inventory.py +0 -0
  39. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/merging.py +0 -0
  40. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/preconsuming.py +0 -0
  41. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/purchasing.py +0 -0
  42. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/purchasingsum.py +0 -0
  43. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/spreadsheet.py +0 -0
  44. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/translating.py +0 -0
  45. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/unwarehousing.py +0 -0
  46. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/unwarehousingsum.py +0 -0
  47. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/warehousing.py +0 -0
  48. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/spreadsheet/workbook.py +0 -0
  49. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/test.py +0 -0
  50. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/warehouse.py +0 -0
  51. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/canteen/workbook.toml +0 -0
  52. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/config.py +0 -0
  53. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/entry.py +0 -0
  54. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/__init__.py +0 -0
  55. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/__main__.py +0 -0
  56. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/data/parental_emails.xlsx +0 -0
  57. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/data/score.xlsx +0 -0
  58. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/email.py +0 -0
  59. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/entry.py +0 -0
  60. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/language.py +0 -0
  61. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/path.py +0 -0
  62. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/score.py +0 -0
  63. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/subject.py +0 -0
  64. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/exam/teacher.py +0 -0
  65. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/external.py +0 -0
  66. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/games/__init__.py +0 -0
  67. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/games/__main__.py +0 -0
  68. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/games/games.py +0 -0
  69. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/inoutput.py +0 -0
  70. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/language.py +0 -0
  71. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/locales/en_US/LC_MESSAGES/fnschool.mo +0 -0
  72. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/locales/zh_CN/LC_MESSAGES/fnschool.mo +0 -0
  73. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/locales/zh_HK/LC_MESSAGES/fnschool.mo +0 -0
  74. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/locales/zh_SG/LC_MESSAGES/fnschool.mo +0 -0
  75. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/locales/zh_TW/LC_MESSAGES/fnschool.mo +0 -0
  76. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/path.py +0 -0
  77. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/test.py +0 -0
  78. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool/user.py +0 -0
  79. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool.egg-info/SOURCES.txt +0 -0
  80. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool.egg-info/dependency_links.txt +0 -0
  81. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool.egg-info/entry_points.txt +0 -0
  82. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool.egg-info/requires.txt +0 -0
  83. {fnschool-20250109.80500.803 → fnschool-20250109.80531.837}/src/fnschool.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fnschool
3
- Version: 20250109.80500.803
3
+ Version: 20250109.80531.837
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>
@@ -29,7 +29,7 @@ from fnschool.user import *
29
29
  from fnschool.config import *
30
30
 
31
31
 
32
- __version__ = "20250109.80500.803"
32
+ __version__ = "20250109.80531.837"
33
33
 
34
34
 
35
35
  # The end.
@@ -147,9 +147,10 @@ class Base:
147
147
 
148
148
  return bill_year
149
149
 
150
- def update_food_sheet_year(self, sheet):
150
+ def update_food_sheet_year(self, sheet, year=None):
151
151
  wb = sheet.parent
152
- bill_year = self.get_bill_year(wb)
152
+ bill_year = year or self.get_bill_year(wb)
153
+ bill_year = str(bill_year)
153
154
  csheet = sheet
154
155
  for row_index in range(1, csheet.max_row + 1):
155
156
  cell0_value = str(csheet.cell(row_index, 1).value).replace(" ", "")
@@ -641,7 +641,7 @@ class Food(Base):
641
641
  self.update_inventories(sheet)
642
642
 
643
643
  self.format(sheet)
644
- self.update_food_sheet_year(sheet)
644
+ self.update_food_sheet_year(sheet, year)
645
645
  print_info(_("Sheet '%s' was updated.") % sheet.title)
646
646
 
647
647
  wb[self.sheet_name].sheet_state = "hidden"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fnschool
3
- Version: 20250109.80500.803
3
+ Version: 20250109.80531.837
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>