Coverage for opt/mealie/lib/python3.12/site-packages/mealie/schema/admin/about.py: 100%

57 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 03:04 +0000

1from mealie.schema._mealie import MealieModel 

2 

3 

4class AppStatistics(MealieModel): 

5 total_recipes: int 

6 total_users: int 

7 total_households: int 

8 total_groups: int 

9 uncategorized_recipes: int 

10 untagged_recipes: int 

11 

12 

13class AppInfo(MealieModel): 

14 production: bool 

15 version: str 

16 demo_status: bool 

17 allow_signup: bool 

18 allow_password_login: bool 

19 default_group_slug: str | None = None 

20 default_household_slug: str | None = None 

21 enable_oidc: bool 

22 oidc_redirect: bool 

23 oidc_provider_name: str 

24 enable_openai: bool 

25 enable_openai_image_services: bool 

26 

27 

28class AppTheme(MealieModel): 

29 light_primary: str = "#E58325" 

30 light_accent: str = "#007A99" 

31 light_secondary: str = "#973542" 

32 light_success: str = "#43A047" 

33 light_info: str = "#1976D2" 

34 light_warning: str = "#FF6D00" 

35 light_error: str = "#EF5350" 

36 

37 dark_primary: str = "#E58325" 

38 dark_accent: str = "#007A99" 

39 dark_secondary: str = "#973542" 

40 dark_success: str = "#43A047" 

41 dark_info: str = "#1976D2" 

42 dark_warning: str = "#FF6D00" 

43 dark_error: str = "#EF5350" 

44 

45 

46class AppStartupInfo(MealieModel): 

47 is_first_login: bool 

48 """ 

49 The applications best guess that a user hasn't logged in. Currently, it really 

50 on indicates that the 'changeme@example.com' user is still in the database. Once 

51 it is removed, this will always return False. 

52 """ 

53 

54 is_demo: bool 

55 

56 

57class AdminAboutInfo(AppInfo): 

58 versionLatest: str 

59 api_port: int 

60 api_docs: bool 

61 db_type: str 

62 db_url: str | None = None 

63 default_group: str 

64 default_household: str 

65 build_id: str 

66 recipe_scraper_version: str 

67 

68 

69class CheckAppConfig(MealieModel): 

70 email_ready: bool 

71 ldap_ready: bool 

72 oidc_ready: bool 

73 enable_openai: bool 

74 base_url_set: bool 

75 is_up_to_date: bool