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
8bbac86d
Commit
8bbac86d
authored
Aug 24, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dbreader.ts
parent
d0423ae3
Pipeline
#29395
passed with stages
in 1 minute and 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/dbreader.ts
src/dbreader.ts
+1
-0
No files found.
src/dbreader.ts
View file @
8bbac86d
...
...
@@ -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