from uber.common import *

config = parse_config(__file__)
c.include_plugin_config(config)

c.DEALER_BADGE_PRICE = c.BADGE_PRICE
from uber.common import *

config = parse_config(__file__)
c.include_plugin_config(config)

@Config.mixin
class ExtraConfig:
    @property
    def DEALER_BADGE_PRICE(self):
        return self.get_attendee_price()

Fix DB errors on stop/re-up Due to the fact that this code was being run before everything else, it would cause server-stopping errors -- but only when starting the server for the first time. It took a little bit to track down, but this is the correct way to override this variable.
Fix DB errors on stop/re-up
Due to the fact that this code was being run before everything else, it would cause server-stopping errors -- but only when starting the server for the first time. It took a little bit to track down, but this is the correct way to override this variable.

  from uber.common import *
  
  config = parse_config(__file__)
  c.include_plugin_config(config)
  
- c.DEALER_BADGE_PRICE = c.BADGE_PRICE
+ @Config.mixin
+ class ExtraConfig:
+     @property
+     def DEALER_BADGE_PRICE(self):
+         return self.get_attendee_price()
+ 
Fix DB errors on stop/re-up Due to the fact that this code was being run before everything else, it would cause server-stopping errors -- but only when starting the server for the first time. It took a little bit to track down, but this is the correct way to override this variable.
## Code Before:
from uber.common import *

config = parse_config(__file__)
c.include_plugin_config(config)

c.DEALER_BADGE_PRICE = c.BADGE_PRICE
## Instruction:
Fix DB errors on stop/re-up Due to the fact that this code was being run before everything else, it would cause server-stopping errors -- but only when starting the server for the first time. It took a little bit to track down, but this is the correct way to override this variable.
## Code After:
from uber.common import *

config = parse_config(__file__)
c.include_plugin_config(config)

@Config.mixin
class ExtraConfig:
    @property
    def DEALER_BADGE_PRICE(self):
        return self.get_attendee_price()
