internal 0.1.2__py3-none-any.whl → 0.1.3__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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/base_factory.py CHANGED
@@ -3,6 +3,8 @@ import logging
3
3
  import logging.handlers
4
4
  import os
5
5
  from abc import ABCMeta, abstractmethod
6
+ from typing import List, Union, Type
7
+ from xml.dom.minidom import Document
6
8
 
7
9
  import dotenv
8
10
  import watchtower
@@ -60,7 +62,7 @@ class BaseFactory(metaclass=ABCMeta):
60
62
  async def startup_db_client():
61
63
  await mongodb.connect()
62
64
  document_model_list = await self.get_document_model_list()
63
- await init_beanie(database=app.state.db.db_name, document_models=document_model_list)
65
+ await init_beanie(database=app.state.db.get_database(), document_models=document_model_list)
64
66
  app.state.logger.info("Database connected")
65
67
 
66
68
  @app.on_event("shutdown")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -1,6 +1,6 @@
1
1
  internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  internal/base_config.py,sha256=_qJl5M5h8hGuaYJnoEwVnk2OP1OB4wy5WPtZAk_mpOY,1003
3
- internal/base_factory.py,sha256=MVgrTDzqq8U7gT9BVgcdmdo6M8TfenO30FaT0VHTUDM,5574
3
+ internal/base_factory.py,sha256=C1su1UJKTHqVEgyNB0-qla9wqDZlvrM5YzvPvMLOhsk,5655
4
4
  internal/const.py,sha256=uEhY93JxbquSivdR_PIzBff0kq3hlvLfdUCdvZLDoKU,1000
5
5
  internal/database.py,sha256=MyRLlb0W8FB8Odq0UQpN3R7OD3yUPWgJXsZRuDWQC_w,1010
6
6
  internal/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -15,6 +15,6 @@ internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  internal/model/base_model.py,sha256=lr2vNKFIJFX--wJutMMD6iSuIg2P07V0-sicxtPWyow,256
16
16
  internal/model/operate.py,sha256=B8P_yWLd3yg-Am_W5WB70sC6Zfz_sWO3myiimr8ysSk,224
17
17
  internal/utils.py,sha256=tDas83c_tDsWHBDMa-m3f3HXYbmel8kif8TWdLBr6LU,1440
18
- internal-0.1.2.dist-info/METADATA,sha256=suW3ASABY8jYPH5X-wicFGXOTLqE2-_VTx8VP0wM7Zg,580
19
- internal-0.1.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
20
- internal-0.1.2.dist-info/RECORD,,
18
+ internal-0.1.3.dist-info/METADATA,sha256=0H_FiC9T6KVZAtPJsHWsQl5iBABuZPpgtbTJ2a31kxY,580
19
+ internal-0.1.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
20
+ internal-0.1.3.dist-info/RECORD,,