Git Product home page Git Product logo

Comments (11)

legendtang avatar legendtang commented on August 16, 2024

同问,17wo 的请求也带时间戳

from qiandao.

binux avatar binux commented on August 16, 2024

{{ timestamp() }}

from qiandao.

morefreeze avatar morefreeze commented on August 16, 2024

@binux 感谢,其实我想问的这个函数支持列表哪里有?比如我还要对时间作些操作

from qiandao.

binux avatar binux commented on August 16, 2024

@morefreeze https://github.com/binux/qiandao/blob/master/libs/utils.py#L221http://jinja.pocoo.org/docs/dev/templates/

from qiandao.

legendtang avatar legendtang commented on August 16, 2024

@binux 添加了这个模板为什么创建的时候要求填写 timestamp?

from qiandao.

binux avatar binux commented on August 16, 2024

@legendtang 这是一个 bug

from qiandao.

legendtang avatar legendtang commented on August 16, 2024

@binux failed at 2/2 request, error:AttributeError("'unicode' object has no attribute '__call__'",), http://www.acfun.tv/webapi/record/actions/signin?channel=0&date={{ timestamp() }}
我遇到了这个错误,这个能正常使用吗?

from qiandao.

legendtang avatar legendtang commented on August 16, 2024

@morefreeze 为什么关了 issue?你确定可以正常使用?

from qiandao.

morefreeze avatar morefreeze commented on August 16, 2024

可以,得到的是一个带小数点的数,虽然我想要个int 但配置jinja的filter已经够了
你这个问题没遇到过,更新到最新代码了吗

from qiandao.

morefreeze avatar morefreeze commented on August 16, 2024

BTW, A站的签到如果不传timestamp是签当天的,传的话可能是补签,目前不填参数已经满足需求了

from qiandao.

legendtang avatar legendtang commented on August 16, 2024

@morefreeze 这样 int 拿到的是以秒为单位的 timestamp,而不能拿到 JS 网页中的毫秒级的,这里 filter 似乎不能做乘法?

from qiandao.

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.