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
f5fc920b
Commit
f5fc920b
authored
Aug 30, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.mycard.moe:mycard/ygopro-cn-database-generator
parents
979b798a
8bbac86d
Pipeline
#29432
failed with stages
in 1 minute and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
src/dbreader.ts
src/dbreader.ts
+1
-0
No files found.
.gitlab-ci.yml
View file @
f5fc920b
...
...
@@ -44,7 +44,7 @@ env408:
variables
:
LOCALE
:
zh-CN
NPM_SCRIPT
:
start:subenv
DATE
:
'
2006-05-1
9
'
DATE
:
'
2006-05-1
5
'
CARD_SYMBOL
:
'
408环境'
FILE_SYMBOL
:
'
env408'
...
...
src/dbreader.ts
View file @
f5fc920b
...
...
@@ -67,6 +67,7 @@ export class Card {
}
async
getRelatedCards
(
db
:
Database
)
{
const
code
=
this
.
code
;
if
(
code
===
5405694
)
return
[];
const
moreCodes
:
number
[]
=
(
await
db
.
all
(
'
SELECT id FROM datas WHERE id > ? AND id <= ? AND (alias = ? OR (type & 0x4000) > 0)
'
,
[
code
,
code
+
20
,
code
])).
map
(
m
=>
m
.
id
);
const
cards
=
await
Promise
.
all
(
moreCodes
.
map
(
code
=>
this
.
createCardFromRelatedCode
(
code
,
db
)));
return
cards
;
...
...
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