From 1826aeaf95c38e61d5838919caa801c7eb3e85f9 Mon Sep 17 00:00:00 2001 From: feilong Date: Mon, 28 Mar 2022 16:23:26 +0800 Subject: [PATCH] add pre-fix to pacakge --- data/package/career/java_backend.json | 2 +- data/package/career/python_crawler.json | 2 +- data/package/career/python_data_analyzer.json | 2 +- data/package/career/python_ops.json | 2 +- src/main/package.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/package/career/java_backend.json b/data/package/career/java_backend.json index b8d3e3c..862e27d 100644 --- a/data/package/career/java_backend.json +++ b/data/package/career/java_backend.json @@ -16,5 +16,5 @@ "se" ] }, - "package_id": "4ee897f9c6ef49f78d906cd46b813208" + "package_id": "career-4ee897f9c6ef49f78d906cd46b813208" } \ No newline at end of file diff --git a/data/package/career/python_crawler.json b/data/package/career/python_crawler.json index 172e51b..486c207 100644 --- a/data/package/career/python_crawler.json +++ b/data/package/career/python_crawler.json @@ -15,5 +15,5 @@ "pg" ] }, - "package_id": "968cf8e80217499fa68d119140033e5a" + "package_id": "career-968cf8e80217499fa68d119140033e5a" } \ No newline at end of file diff --git a/data/package/career/python_data_analyzer.json b/data/package/career/python_data_analyzer.json index 945ab7b..bbdd598 100644 --- a/data/package/career/python_data_analyzer.json +++ b/data/package/career/python_data_analyzer.json @@ -14,5 +14,5 @@ "pg" ] }, - "package_id": "900fef3acfbd450a8b342a6bbfb5145d" + "package_id": "career-900fef3acfbd450a8b342a6bbfb5145d" } \ No newline at end of file diff --git a/data/package/career/python_ops.json b/data/package/career/python_ops.json index 58b9be1..e84e91a 100644 --- a/data/package/career/python_ops.json +++ b/data/package/career/python_ops.json @@ -14,5 +14,5 @@ "pg" ] }, - "package_id": "2afef99901814988afc7624c4c59a122" + "package_id": "career-2afef99901814988afc7624c4c59a122" } \ No newline at end of file diff --git a/src/main/package.py b/src/main/package.py index 2392fd6..87a08c5 100644 --- a/src/main/package.py +++ b/src/main/package.py @@ -19,5 +19,5 @@ class Package: self.visit_package(file_full_name, pkg) def visit_package(self, file_full_name, pkg): - pkg['package_id'] = uuid.uuid4().hex + pkg['package_id'] = 'career-'+uuid.uuid4().hex dump_json(file_full_name, pkg, exist_ok=True, override=True) -- GitLab