Commit Graph

27 Commits

Author SHA1 Message Date
bcf68c8332 Added some rofi stuff for easier & quicker interaction
Looking actually pretty okay!
2025-08-19 23:01:32 +01:00
3f4af21a93 Search with uppercase should work
I made the search string also lowercase
2025-08-19 22:12:18 +01:00
98af8885a6 Added searching by lower or card name
Also added help strings
2025-08-19 22:02:18 +01:00
9f03e3e11f Seaching card by name works 2025-08-17 01:08:27 +01:00
9a9f42bc1e Changing how to use textdifference thing
I think it'd be better to use text difference if a substring isn't found.

I realised afterwards that I think this is how Scryfall does it anyway.
2025-08-17 00:34:03 +01:00
6558a31619 Matching substrings works
Want to try also using something like this for finding spelling mistakes etc.
https://github.com/life4/textdistance.rs

Going to have to try to do some combination though to ensure exact substring
matches, even when missing the latter half, still work well. Maybe... I dunno
will have to try.
2025-08-16 21:38:34 +01:00
72fa35d41a Got all cards out from db 2025-08-16 03:59:24 +01:00
ff4c58113f Creating database seems alright
Unsure really whether the data is in there properly - but there
is data in there!
2025-08-16 03:41:51 +01:00
da121940da Updated test files and changes in scryfall db
Also removed PromoType - don't need that right now
2025-08-16 02:41:17 +01:00
9c2d9c1fb7 Fixed matching the BulkType
The serde to_string thing has "" around the strings.
2025-08-16 02:21:43 +01:00
1462401787 Added a utils file
Wanted to separate the higher level config folder stuff from just db module

Because the download module will also want to find cache
2025-08-15 02:00:50 +01:00
5dfdff17c1 Added the start of the db create
Need to do insert (obv), recall, search by name (get the whole name column), and
then display nicely.

Also renamed / used more correctly the "data" folder. I should use cache for
the downloaded .json file from scryfall though
2025-08-15 01:48:16 +01:00
4f095c55ec Moved some files and started skeleton db 2025-08-15 00:55:47 +01:00
d168ca88ec Moved seperate things into separate files 2025-08-15 00:22:18 +01:00
6d21f5e496 Added checking for the correct type 2025-08-14 23:45:42 +01:00
906aaa1e59 Using ureq to download files
I might just throw out the TempFile thing - should actually save them somewhere. As
I think it would likely be useful for testing too
2025-08-13 20:22:49 +01:00
f0d851ebb3 Fixed up a couple of fields 2025-02-08 01:19:32 +00:00
d868ef1e90 Added a couple more enums and invalid-ish card list 2025-02-08 00:41:21 +00:00
a1728de503 Ran rustfmt and clippy 2025-02-07 22:38:20 +00:00
a14d2dcb75 Don't look at that awful test...
I have tested it on the Oracle cards - so should like... mostly work for cards

Except for, I think, mistakes? in the Scryfall database.
2025-02-05 00:13:48 +00:00
66b22c1c30 Added a very poorly written test thingy
Started fixing a couple of mistakes
2025-02-04 23:45:53 +00:00
993ac46954 Got most of the fields I think 2025-02-04 23:21:23 +00:00
f576fe6cc8 Added UUID
And fixed up the fact the promo types are optionally null/not there/empty/full
2025-02-04 22:40:51 +00:00
2dd4f3d696 Added some more fields
Got most of them done. Added a couple of cards too
2025-02-01 01:18:38 +00:00
d8e0b2c07b Seems to be alright at deserialising the things so far 2025-01-31 23:45:43 +00:00
871d2af2da Added a first test to see whether a card is available 2025-01-31 23:31:58 +00:00
9771a905ff Half of ScryfallDeser fields added
Very non-atomic - and I'm not even sure if it's half.

I think I might stop here and actually try the derserialisation stuff
2025-01-31 23:21:47 +00:00