Git Product home page Git Product logo

Comments (6)

th3r00t avatar th3r00t commented on May 30, 2024 1

The type should be adjusted here. This will likely squash this issue. I've just gotta get to it. or get a pr ;)
https://github.com/th3r00t/pyShelf/blob/8adcb0e1723597578ea34d2e60a276ad57e29384/src/interface/models.py

from pyshelf.

th3r00t avatar th3r00t commented on May 30, 2024

Thanks for this report!

from pyshelf.

simcop2387 avatar simcop2387 commented on May 30, 2024

I've run into this and It looks like it's probably on the book.rights value.

the epub has this in the contents.opf

    <dc:rights>Text copyright © 2019 by Dragonsteel Entertainment, LLC; Cover art copyright © 2019 by Charlie Bowater; Starsight map by Bryan Mark Taylor copyright © 2019 by Dragonsteel Entertainment, LLC; Additional illustrations by Isaac Stewart and Ben McSweeney copyright © 2018 by Dragonsteel&amp;#x00A0;Entertainment, LLC</dc:rights>

Which contains a string longer than 255 characters. And truncating this fixes the import. My specific book is Starsight by Brandon Sanderson

from pyshelf.

simcop2387 avatar simcop2387 commented on May 30, 2024

The best way to fix it is to likely stop using varchar() and instead just use the text type.

https://www.postgresql.org/docs/13/datatype-character.html has the details about how they differ

from pyshelf.

simcop2387 avatar simcop2387 commented on May 30, 2024

I may make a PR later then for it. Another good link for anyone coming back to this later

https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_varchar.28n.29_by_default

from pyshelf.

th3r00t avatar th3r00t commented on May 30, 2024

Should be fixed with merge #73

from pyshelf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.