Skip to content

Commit

Permalink
feat: add url and repo parse func
Browse files Browse the repository at this point in the history
  • Loading branch information
maksyuki committed Mar 10, 2024
1 parent fa3b205 commit 2952ed8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/add_dut.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ def handle_err(self, val: str):

def add(self):
with open(config.SUBMIT_LIST_PATH, 'r', encoding='utf-8') as fp:
for url in fp:
repo = url.rstrip('\n').split('/')[-1]
for line in fp:
url = line.rstrip().split()[0]
repo = line.rstrip().split()[1]
logging.debug(msg=url)
logging.debug(msg=repo)
if self.check_valid(repo):
self.fill_data(url, repo)
Expand Down

0 comments on commit 2952ed8

Please sign in to comment.