-
Notifications
You must be signed in to change notification settings - Fork 3
Log items that share the same UUID #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Spazcool
wants to merge
17
commits into
master
Choose a base branch
from
logDouble
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9790b58
REFACTOR: logScanned to catch doubled UUIDs & render doubles on template
f19fcc8
FIX: hacked out bug
4aea460
REMOVE: cut duplication in logScanned func
e4bb3c8
REFACTOR: logScanned works again
b6dc388
REMOVE: double UUID conditional from recent.ejs
93da255
ADD: double UUID conditional without duplicate code
cae791d
ADD: double UUID conditional without duplicate code
5b37912
ADD: link to item row in spreadsheet to both item obj and recent.ejs
6f7a97f
Refactoring/simplifying code googleSpreadsheet.js
mpsido 1c1d78a
Removing hard url in app.js
mpsido d04c2cf
Refactoring, addRecentlyScanned function instead of logScanned
mpsido 9d8e1c8
Merge master
mpsido 12229de
Fixing pre-commit lint warnings, and adding addQrImg function to items
mpsido 3cd5020
moving filterEmptyUuid and sortByFloor functions to attribute of matc…
mpsido d33e8d9
Removing deprecated similar items function
mpsido 9b0b9a6
Fixing qrList regression
mpsido e773185
Reintroducing cellRef
mpsido File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,7 @@ app.get('/qrlist', (req, res) => { | |
| .filter(item => item.uuid !== '') | ||
| .filter(item => item.uuid !== undefined) | ||
| .sort((a, b) => (a.floor === b.floor ? 0 : +(a.floor > b.floor) || -1)); | ||
| qrList.forEach(item => item.qr = qr.imageSync('http://url.coderbunker.com/' + item.uuid, { type: 'svg' })); | ||
| qrList.forEach(item => item.qr = qr.imageSync(item.uuid, { type: 'svg' })); | ||
| res.render('qrList', { matches: qrList }); | ||
| }); | ||
| }); | ||
|
|
@@ -75,6 +75,9 @@ app.get('/:uuid', (req, res) => { | |
| return; | ||
| } | ||
| logScanned(req.params.uuid, matches); | ||
| if (matches.length >= 1) { | ||
| console.log(`Too much matches for uuid ${req.params.uuid} length = ${matches.length}`); | ||
| } | ||
| matches[0].similarItems = searchDatabase({ fixture: matches[0].fixture }, allItems) | ||
|
||
| .filter(item => item.uuid !== matches[0].uuid) | ||
| .splice(0, 3); | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
break behaviour , it should be / instead of
Besides, it's off topic with the current branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix that, in which case it won't work ? I need to reproduce it so that I ensure the change will fix that case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if current page is not root folder then it will assume the uuid is a subfolder