1. 27 Mar, 2019 1 commit
  2. 05 Mar, 2019 2 commits
  3. 04 Mar, 2019 2 commits
  4. 03 Mar, 2019 2 commits
  5. 02 Mar, 2019 2 commits
  6. 01 Mar, 2019 3 commits
  7. 26 Feb, 2019 1 commit
  8. 25 Feb, 2019 1 commit
    • Adam Leyshon's avatar
      Fix glitterbot issues with RedisPy 3.2.0 · 0b35ec53
      Adam Leyshon authored
      Moved library code to GWPCC.
      Fixed stupid bug that caused the colony index to be rebuilt
      exponentially many more times as there are databases.
      This also caused all other databases except the last to never exit
      maintenance mode.
  9. 21 Feb, 2019 3 commits
    • Adam Leyshon's avatar
      Quick boolean fix · a6daa42a
      Adam Leyshon authored
    • Adam Leyshon's avatar
      Major rethink on the market value calculations. · e24cc063
      Adam Leyshon authored
      Added maximum price caps depending on the price break an item is in.
      Unit calculations changed to be more sensible.
      Reduce buy price if < 10% stock was traded.
      Increase sell price if < 50% of an item in stock.
      Maximum sell price hard capped at 150% of BMV.
      We now always update the price regardless of quantities traded or stock
      limits, previously the items price would never change if not traded.
      Price points are looked up only once now instead of per item.
      If an items price is outside known, we default to the highest point.
      Added CSV exports daily for price data.
    • Adam Leyshon's avatar
      Switch to using JSON decoder from AST. · 16489874
      Adam Leyshon authored
  10. 16 Feb, 2019 1 commit
    • Adam Leyshon's avatar
      Added indexing of Colonies and Things ready for the Website. · ea109595
      Adam Leyshon authored
      Stock will automatically be reduced for things that are over StockMax
      By an amount between 5 and 25% of the quantity in stock.
      Updated constants file with new Locale, Ban and index keys.
      Updated helper file with some new date/time funcs.
      Reduced StockMax of Items >=0 <5 to 100,000 from 200,000.
      Added some useful scripts that are hacked together for querying the DB or fixing shit.
      GB exits after a single pass if Force Run.
  11. 20 Sep, 2018 1 commit
  12. 18 Sep, 2018 4 commits
  13. 17 Sep, 2018 4 commits
  14. 11 May, 2018 3 commits
  15. 01 May, 2018 1 commit
    • Adam Leyshon's avatar
      Think I've finally nailed the Colony->GWP selling prices · 7d9f11d5
      Adam Leyshon authored
      First we calculate how many units over the Max Stock threshold we have
      Then reduce the price by that percentage. So if we've got 35% more items
      in stock than we should have we reduce the price by 35%.
      We now skip updating the prices if we can't find a price profile for
      that thing.
      The initial colony sell price is 75% of the base market value.
      We now make sure that we have an amount of items in stock between
      StockMin and half of the difference between StockMax and StockMin.
      So if StockMin is 100 and Max is 150 we put between 100 and 125 items in
  16. 28 Apr, 2018 1 commit
    • Adam Leyshon's avatar
      First attempt at daily sales of things implemented. · ad8469ff
      Adam Leyshon authored
      Added _KEY_GLITTERBOT_IGNORE_THINGS for things that will never be
      touched by GlitterBot
      Added _KEY_GLITTERBOT_SPRM which dictate the Sell Price Reduction
      multiplier, usually at 75% of Market Value.
      Completely reworked the creation of ThingWithMarketData objects,
      objects are now created in bulk and make better use of pipelining in
      It is now possible to tell which attributes have changed on a
      ThingWithMarketData object by comparing the attribute with the value in
      the OriginalData dictionary of the ThingWithMarketData object.
      e.g. if thingWithData.OriginalData.get('BuyPrice') !=
  17. 11 Apr, 2018 1 commit
  18. 13 Dec, 2017 5 commits
  19. 08 Dec, 2017 2 commits