Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Errors #57

Open
nikukyugamer opened this issue Jul 10, 2018 · 0 comments
Open

Syntax Errors #57

nikukyugamer opened this issue Jul 10, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nikukyugamer
Copy link
Collaborator

https://github.com/corselia/suikoden-election-2018/blob/master/app/lib/twitter_api/search_tweet.rb

  def self.latest_tweet_number(search_word:)
    search_word_tweet_exists?(search_word: search_word) ? SearchWord.where(word: search_word).first.tweets.order(tweet_number: :desc).first[:tweet_number].to_s : 0
  end

  def self.oldest_tweet_number(search_word:)
    search_word_tweet_exists?(search_word: search_word) ? SearchWord.where(word: search_word).first.tweets.order(tweet_number: :asc).first[:tweet_number].to_s : 0
  end
@nikukyugamer nikukyugamer added the bug Something isn't working label Jul 10, 2018
@nikukyugamer nikukyugamer self-assigned this Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant