Skip to content

options.allowed_market_items #635

@Benouare

Description

@Benouare

Hi,

I ve Just got an issue with this part of code (look at bottom).
Don't know if i am doing something wrong or not but, when I try to activate the Federal reserve I run to a HTTP 500.
In the logs (can't copy it now), something as :

options is called be assigned

Or something like that.
I am on a docker version, everything else is working pretty well.
To "fix" it, i ve just removed the
if "Federal Reserve" in options.allowed_market_items and
With that code, everything works and no bug/500 error anymore.
Is it a known issue?

Cheers

{% from tornado.options import options %}
{% block content %}
    {% if "Federal Reserve" in options.allowed_market_items and user.has_item("Federal Reserve") %}
        <div class="container">
            <h1>{{ _("Federal Reserve Bank") }}</h1>
            <br />
            <div class="well" >
                <form id="csrf">
                    {% raw xsrf_form_html() %}
                </form>
                <h3>
                    <i class="fa fa-terminal"></i>
                    {{ _("Mainframe Console") }}
                </h3>
                <div id="console" style="width: auto; height: 500px;">
                </div>
            </div>
        </div>
    {% end %}
{% end %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions