Code Monkey home page Code Monkey logo

fruitysync's People

Contributors

sporty avatar

Watchers

 avatar

fruitysync's Issues

例外処理

例外処理がいい加減過ぎる。シンプルなルールで例外が起こったときにログや画面表示に反映する。

dry runモード追加

ツイートの内容確認、同期ルールに不具合がないか確認するために、manage.py synctweetにdry runモードを追加する。

オプションはargparse?など標準ライブラリが使えるか調査して使えるようなら使う。無理なら独自実装する。

ログの整理

アプリについてはprint文が全てログに出力される。

heroku runで実行するとコンソールのみ。起動したことしかログに残らない。

schedulerはどうか調査。

最低限エラーの原因がつかめるように例外をきちんと分けてログに出力されるようにする。

同期コードの整理

manage synctweetとアプリの同期ボタンを同一コードにする。

SnsAccountにsyncメソッドを作るのが自然。

同期済みツイートの処理

途中で例外が発生してもキチンと同期済みリストに記録する。

同期済みリストを見てスキップするようにキチンと実装する。

反映させないツイート

反映させないようにはじくツイートまとめ。

メンション。
返信。
公式Retweet。

非公式RTライクな物は反映させる。単純に@〜が入っていることを条件にすると、これがもれる。

cronの設定

herokuのcronは1日1回。いまはschedulerに移行している。

schedulerで10分に1回同期されるように設定する。

エラー発生時にメール通知

エラーが発生したときに、登録ユーザーにメールが飛ぶようにする。

うざいか?

Facebookメッセージでもいいかも。

twitterへのリンク

twitter公式同期アプリのように、twitterアカウントへのリンクを追加したい。

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.