Giter Club home page Giter Club logo

Comments (7)

lucious7 avatar lucious7 commented on August 30, 2024 2

Also, if you use yaml instead of json it will work fine.

from flask-fixtures.

s7anley avatar s7anley commented on August 30, 2024 1

You can try my PR #32 which allows you to disable parsing. Hopefully @croach will merged it soon.

from flask-fixtures.

jmgnc avatar jmgnc commented on August 30, 2024

the parameters will be:
[parameters: {'name': 'Agent', 'uuid': datetime.datetime(2016, 10, 1, 0, 0)}]

from flask-fixtures.

yaoelvon avatar yaoelvon commented on August 30, 2024

I encountered the same problem, had to precede the number with letters.
Can you tell me why?

from flask-fixtures.

s7anley avatar s7anley commented on August 30, 2024

Unfortunately JSONLoader is trying to automatically parse everything into datetime in flask_fixtures/loaders.py:59. I didn't find way so far , how to use custom JSONLoader instead of provided one as workaround.

from flask-fixtures.

fangli avatar fangli commented on August 30, 2024

+1, same issue

from flask-fixtures.

lucious7 avatar lucious7 commented on August 30, 2024

+1

Same problem. It only happens if you have dateutil installed.

@s7anley Your PR is from 2016, is it going to be merged yet? Anyway, it fixes the problem only partially. In my case I have string fields representing dates and numbers in the same json.

The workaround I found is to use number in those fields, instead of string representing numbers (as they really are in the database). I'll try to come up with yet another solution for this.

from flask-fixtures.

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.