Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
farfun committed Dec 18, 2024
1 parent bd43d45 commit 65fbf4f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions logs/all.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-12-18 12:56:45.242 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-18 12:56:45.246 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-18 12:56:57.130 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
2024-12-18 13:04:10.571 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-18 13:04:10.571 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-18 13:04:19.693 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
3 changes: 3 additions & 0 deletions logs/funbuild.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-12-18 12:56:45.242 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-18 12:56:45.246 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-18 12:56:57.130 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
2024-12-18 13:04:10.571 |INFO | funbuild.core.core : core: 86 | funbuild | - fundrive build
2024-12-18 13:04:10.571 |INFO | funbuild.core.core : core: 74 | funbuild | - fundrive pull
2024-12-18 13:04:19.693 |INFO | funbuild.core.core : core: 78 | funbuild | - fundrive push
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fundrive"
version = "1.2.70"
version = "1.2.71"
description = "fundrive"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
8 changes: 4 additions & 4 deletions src/fundrive/drives/lanzou/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def instance(self):
if self.drive is not None:
return
try:
from lanzou.api import LanZouCloud
from fundrives.lanzou import LanZouCloud
except Exception as e:
logger.error(e)
subprocess.check_call(["pip", "install", "fundrive-lanzou"])
from lanzou.api import LanZouCloud
from fundrives.lanzou import LanZouCloud
self.drive = LanZouCloud()

def login(
Expand Down Expand Up @@ -103,7 +103,7 @@ def get_dir_list(self, fid, url=None, pwd=None, *args, **kwargs) -> List[DriveFi
def get_file_list(
self, fid, url=None, pwd=None, *args, **kwargs
) -> List[DriveFile]:
from lanzou.api.utils import convert_file_size_to_int
from fundrives.lanzou.utils import convert_file_size_to_int

result = []
if fid is not None:
Expand Down Expand Up @@ -131,7 +131,7 @@ def get_file_list(
return result

def get_file_info(self, fid, url=None, pwd=None, *args, **kwargs) -> DriveFile:
from lanzou.api.utils import convert_file_size_to_int
from fundrives.lanzou.utils import convert_file_size_to_int

data = None
if fid is not None:
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 65fbf4f

Please sign in to comment.