Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-cn-database-generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-cn-database-generator
Commits
bcfeac62
Commit
bcfeac62
authored
Oct 20, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
little work for adapting other datasources
parent
dd1a09cb
Pipeline
#935
passed with stages
in 1 minute and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
run.ts
run.ts
+7
-3
No files found.
run.ts
View file @
bcfeac62
...
...
@@ -2,13 +2,17 @@ import { DBReader } from "./src/dbreader";
import
{
CNFetcher
}
from
"
./src/fetcher
"
;
import
_
from
"
underscore
"
;
async
function
main
(
)
{
async
function
fetchCardsFromNW
(
dbreader
:
DBReader
)
{
const
fetcher
=
new
CNFetcher
({
name
:
"
Fetcher
"
,
level
:
"
debug
"
});
await
fetcher
.
init
();
const
strings
=
await
fetcher
.
fetch
();
return
await
dbreader
.
getAllCardsFromJapaneseNames
(
strings
);
}
async
function
main
()
{
const
dbreader
=
new
DBReader
({
name
:
"
Database
"
,
level
:
"
debug
"
});
await
dbreader
.
init
();
const
strings
=
await
fetcher
.
fetch
();
const
cards
=
await
dbreader
.
getAllCardsFromJapaneseNames
(
strings
);
const
cards
=
await
fetchCardsFromNW
(
dbreader
);
await
dbreader
.
run
(
cards
);
process
.
exit
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment